Hi Zsolt,

Thank you for the patch.

I applied v1 on master and tested it with dummy_index_am, using values of
63, 64 and 200 bytes:
1. On master, the 64- and 200-byte values are printed unquoted by
pg_get_indexdef(), and both replaying its output and a pg_dump/restore
round trip leave 63-byte values. With v1 they are quoted and the
round-tripped values match the originals. The 63-byte value is still
printed bare, as expected.
2. The new regression test fails on master and passes with the patch.

One observation that may matter for back-patching is pg_dump takes
plain CREATE INDEX statements from the server's pg_get_indexdef(), so
the fe_utils change doesn't help there. Running a patched pg_dump
against an unpatched server still produces a truncating dump. Fixing
this for existing releases therefore needs the ruleutils.c change
back-patched; a newer pg_dump alone is not enough.

Overall the patch looks good to me.

Regards,
Surya Poondla

Reply via email to