pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Stabilize pg_dump output order for similarly-named triggers and 7+ messages / 1 participants [nested] [flat]
* pgsql: Stabilize pg_dump output order for similarly-named triggers and @ 2019-11-04 21:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-04 21:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stabilize pg_dump output order for similarly-named triggers and policies. The code only compared two triggers' names and namespaces (the latter being the owning table's schema). This could result in falling back to an OID-based sort of similarly-named triggers on different tables. We prefer to avoid that, so add a comparison of the table names too. (The sort order is thus table namespace, trigger name, table name, which is a bit odd, but it doesn't seem worth contorting the code to work around that.) Likewise for policy objects, in 9.5 and up. Complaint and fix by Benjie Gillam. Back-patch to all supported branches. Discussion: https://postgr.es/m/CAMThMzEEt2mvBbPgCaZ1Ap1N-moGn=Edxmadddjq89WG4NpPtQ@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5102f39440f758ea53c2e1cdea7d8411df1805d2 Modified Files -------------- src/bin/pg_dump/pg_dump_sort.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Stabilize pg_dump output order for similarly-named triggers and @ 2019-11-04 21:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-04 21:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stabilize pg_dump output order for similarly-named triggers and policies. The code only compared two triggers' names and namespaces (the latter being the owning table's schema). This could result in falling back to an OID-based sort of similarly-named triggers on different tables. We prefer to avoid that, so add a comparison of the table names too. (The sort order is thus table namespace, trigger name, table name, which is a bit odd, but it doesn't seem worth contorting the code to work around that.) Likewise for policy objects, in 9.5 and up. Complaint and fix by Benjie Gillam. Back-patch to all supported branches. Discussion: https://postgr.es/m/CAMThMzEEt2mvBbPgCaZ1Ap1N-moGn=Edxmadddjq89WG4NpPtQ@mail.gmail.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ca27a84c98f0d071d527bfd17f500a0bd66cb4d2 Modified Files -------------- src/bin/pg_dump/pg_dump_sort.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Stabilize pg_dump output order for similarly-named triggers and @ 2019-11-04 21:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-04 21:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stabilize pg_dump output order for similarly-named triggers and policies. The code only compared two triggers' names and namespaces (the latter being the owning table's schema). This could result in falling back to an OID-based sort of similarly-named triggers on different tables. We prefer to avoid that, so add a comparison of the table names too. (The sort order is thus table namespace, trigger name, table name, which is a bit odd, but it doesn't seem worth contorting the code to work around that.) Likewise for policy objects, in 9.5 and up. Complaint and fix by Benjie Gillam. Back-patch to all supported branches. Discussion: https://postgr.es/m/CAMThMzEEt2mvBbPgCaZ1Ap1N-moGn=Edxmadddjq89WG4NpPtQ@mail.gmail.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/078f5bc8e307fd13ea256e8c37d22aaddc846211 Modified Files -------------- src/bin/pg_dump/pg_dump_sort.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Stabilize pg_dump output order for similarly-named triggers and @ 2019-11-04 21:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-04 21:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stabilize pg_dump output order for similarly-named triggers and policies. The code only compared two triggers' names and namespaces (the latter being the owning table's schema). This could result in falling back to an OID-based sort of similarly-named triggers on different tables. We prefer to avoid that, so add a comparison of the table names too. (The sort order is thus table namespace, trigger name, table name, which is a bit odd, but it doesn't seem worth contorting the code to work around that.) Likewise for policy objects, in 9.5 and up. Complaint and fix by Benjie Gillam. Back-patch to all supported branches. Discussion: https://postgr.es/m/CAMThMzEEt2mvBbPgCaZ1Ap1N-moGn=Edxmadddjq89WG4NpPtQ@mail.gmail.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ee8b95f2684a2af9a4c3b78b345e01cba2ef31ce Modified Files -------------- src/bin/pg_dump/pg_dump_sort.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Stabilize pg_dump output order for similarly-named triggers and @ 2019-11-04 21:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-04 21:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stabilize pg_dump output order for similarly-named triggers and policies. The code only compared two triggers' names and namespaces (the latter being the owning table's schema). This could result in falling back to an OID-based sort of similarly-named triggers on different tables. We prefer to avoid that, so add a comparison of the table names too. (The sort order is thus table namespace, trigger name, table name, which is a bit odd, but it doesn't seem worth contorting the code to work around that.) Likewise for policy objects, in 9.5 and up. Complaint and fix by Benjie Gillam. Back-patch to all supported branches. Discussion: https://postgr.es/m/CAMThMzEEt2mvBbPgCaZ1Ap1N-moGn=Edxmadddjq89WG4NpPtQ@mail.gmail.com Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/648f17879e61e9faa007eab56331afe77b696c1e Modified Files -------------- src/bin/pg_dump/pg_dump_sort.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Stabilize pg_dump output order for similarly-named triggers and @ 2019-11-04 21:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-04 21:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stabilize pg_dump output order for similarly-named triggers and policies. The code only compared two triggers' names and namespaces (the latter being the owning table's schema). This could result in falling back to an OID-based sort of similarly-named triggers on different tables. We prefer to avoid that, so add a comparison of the table names too. (The sort order is thus table namespace, trigger name, table name, which is a bit odd, but it doesn't seem worth contorting the code to work around that.) Likewise for policy objects, in 9.5 and up. Complaint and fix by Benjie Gillam. Back-patch to all supported branches. Discussion: https://postgr.es/m/CAMThMzEEt2mvBbPgCaZ1Ap1N-moGn=Edxmadddjq89WG4NpPtQ@mail.gmail.com Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/74d32ee704ebe01d9336d6116449603a3fe6462d Modified Files -------------- src/bin/pg_dump/pg_dump_sort.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Stabilize pg_dump output order for similarly-named triggers and @ 2019-11-04 21:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-04 21:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stabilize pg_dump output order for similarly-named triggers and policies. The code only compared two triggers' names and namespaces (the latter being the owning table's schema). This could result in falling back to an OID-based sort of similarly-named triggers on different tables. We prefer to avoid that, so add a comparison of the table names too. (The sort order is thus table namespace, trigger name, table name, which is a bit odd, but it doesn't seem worth contorting the code to work around that.) Likewise for policy objects, in 9.5 and up. Complaint and fix by Benjie Gillam. Back-patch to all supported branches. Discussion: https://postgr.es/m/CAMThMzEEt2mvBbPgCaZ1Ap1N-moGn=Edxmadddjq89WG4NpPtQ@mail.gmail.com Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/da5cd7a68a3394ad4d22258dee39546615ddff7e Modified Files -------------- src/bin/pg_dump/pg_dump_sort.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2019-11-04 21:25 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-11-04 21:25 pgsql: Stabilize pg_dump output order for similarly-named triggers and Tom Lane <tgl@sss.pgh.pa.us> 2019-11-04 21:25 pgsql: Stabilize pg_dump output order for similarly-named triggers and Tom Lane <tgl@sss.pgh.pa.us> 2019-11-04 21:25 pgsql: Stabilize pg_dump output order for similarly-named triggers and Tom Lane <tgl@sss.pgh.pa.us> 2019-11-04 21:25 pgsql: Stabilize pg_dump output order for similarly-named triggers and Tom Lane <tgl@sss.pgh.pa.us> 2019-11-04 21:25 pgsql: Stabilize pg_dump output order for similarly-named triggers and Tom Lane <tgl@sss.pgh.pa.us> 2019-11-04 21:25 pgsql: Stabilize pg_dump output order for similarly-named triggers and Tom Lane <tgl@sss.pgh.pa.us> 2019-11-04 21:25 pgsql: Stabilize pg_dump output order for similarly-named triggers and Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox