From: David Rowley Date: Thu, 25 Sep 2025 23:04:15 +0000 (+1200) Subject: Fix misleading comment in pg_get_statisticsobjdef_string() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3760d278dc4165d5eef7435fc62d8ebe13b8e793;p=thirdparty%2Fpostgresql.git Fix misleading comment in pg_get_statisticsobjdef_string() The comment claimed that a TABLESPACE reference was added to the resulting string, but that's not true. Looks like the comment was copied from pg_get_indexdef_string() without being adjusted correctly. Reported-by: jian he Discussion: https://postgr.es/m/CACJufxHwVPgeu8o9D8oUeDQYEHTAZGt-J5uaJNgYMzkAW7MiCA@mail.gmail.com --- diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c index 0408a95941d..defcdaa8b34 100644 --- a/src/backend/utils/adt/ruleutils.c +++ b/src/backend/utils/adt/ruleutils.c @@ -1620,7 +1620,6 @@ pg_get_statisticsobjdef(PG_FUNCTION_ARGS) /* * Internal version for use by ALTER TABLE. - * Includes a tablespace clause in the result. * Returns a palloc'd C string; no pretty-printing. */ char *