mislead comments in pg_get_statisticsobjdef_string
jian he <jian.universality@gmail.com>
From: jian he <jian.universality@gmail.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2025-09-25T13:16:47Z
Lists: pgsql-hackers
hi.
/*
* Internal version for use by ALTER TABLE.
* Includes a tablespace clause in the result.
* Returns a palloc'd C string; no pretty-printing.
*/
char *
pg_get_statisticsobjdef_string(Oid statextid)
{
return pg_get_statisticsobj_worker(statextid, false, false);
}
is the above "tablespace clause" comment wrong?
since there is no "tablespace clause" related to CREATE STATISTICS.
I guess that time, comments were just simply copied from
function pg_get_indexdef_string.
Commits
-
Fix misleading comment in pg_get_statisticsobjdef_string()
- 3760d278dc41 19 (unreleased) landed