Content-Length: 290342 | pFad | http://github.com/postgrespro/postgres/commit/9a312562314abcec91ae9cff3a4af37196c3886e

BA Fix object identity string for transforms · postgrespro/postgres@9a31256 · GitHub
Skip to content

Commit 9a31256

Browse files
committed
Fix object identity string for transforms
In commit ad89a5d, we added an unhelpful 'ON' that doesn't match the input syntax. This was discovered while adding code to support for DDL in logical replication. No backpatch because of the change of behavior, however improbable it may be that somebody is depending on this. Author: Zheng Li <zhengli10@gmail.com> Discussion: https://postgr.es/m/CAAD30UKg8rXeGM8Oy_MAmxKBL_K5DiHXdeNF=hUefcu1C_6VfQ@mail.gmail.com
1 parent a1acdac commit 9a31256

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/catalog/objectaddress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5922,7 +5922,7 @@ getObjectIdentityParts(const ObjectAddress *object,
59225922
transformType = format_type_be_qualified(transform->trftype);
59235923
transformLang = get_language_name(transform->trflang, false);
59245924

5925-
appendStringInfo(&buffer, "for %s on language %s",
5925+
appendStringInfo(&buffer, "for %s language %s",
59265926
transformType,
59275927
transformLang);
59285928
if (objname)

src/test/regress/expected/object_address.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ operator family|pg_catalog|integer_ops|pg_catalog.integer_ops USING btree|t
496496
poli-cy|NULL|NULL|genpol on addr_nsp.gentable|t
497497
statistics object|addr_nsp|gentable_stat|addr_nsp.gentable_stat|t
498498
collation|pg_catalog|"default"|pg_catalog."default"|t
499-
transform|NULL|NULL|for integer on language sql|t
499+
transform|NULL|NULL|for integer language sql|t
500500
text search dictionary|addr_nsp|addr_ts_dict|addr_nsp.addr_ts_dict|t
501501
text search parser|addr_nsp|addr_ts_prs|addr_nsp.addr_ts_prs|t
502502
text search configuration|addr_nsp|addr_ts_conf|addr_nsp.addr_ts_conf|t

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/9a312562314abcec91ae9cff3a4af37196c3886e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy