[COMMITTERS] pgsql: Make connect/test1 independent of localhost IPv6.

2017-11-11 Thread Noah Misch
Make connect/test1 independent of localhost IPv6. Since commit 868898739a8da9ab74c105b8349b7b5c711f265a, it has assumed "localhost" resolves to both ::1 and 127.0.0.1. We gain nothing from that assumption, and it does not hold in a default installation of Red Hat Enterprise Linux 5. Back-patch t

[COMMITTERS] pgsql: Add post-2010 ecpg tests to checktcp.

2017-11-11 Thread Noah Misch
Add post-2010 ecpg tests to checktcp. This suite had been a proper superset of the regular ecpg test suite, but the three newest tests didn't reach it. To make this less likely to recur, delete the extra schedule file and pass the TCP-specific test on the command line. Back-patch to 9.3 (all sup

[COMMITTERS] pgsql: Add post-2010 ecpg tests to checktcp.

2017-11-11 Thread Noah Misch
Add post-2010 ecpg tests to checktcp. This suite had been a proper superset of the regular ecpg test suite, but the three newest tests didn't reach it. To make this less likely to recur, delete the extra schedule file and pass the TCP-specific test on the command line. Back-patch to 9.3 (all sup

[COMMITTERS] pgsql: Add post-2010 ecpg tests to checktcp.

2017-11-11 Thread Noah Misch
Add post-2010 ecpg tests to checktcp. This suite had been a proper superset of the regular ecpg test suite, but the three newest tests didn't reach it. To make this less likely to recur, delete the extra schedule file and pass the TCP-specific test on the command line. Back-patch to 9.3 (all sup

[COMMITTERS] pgsql: Add post-2010 ecpg tests to checktcp.

2017-11-11 Thread Noah Misch
Add post-2010 ecpg tests to checktcp. This suite had been a proper superset of the regular ecpg test suite, but the three newest tests didn't reach it. To make this less likely to recur, delete the extra schedule file and pass the TCP-specific test on the command line. Back-patch to 9.3 (all sup

[COMMITTERS] pgsql: Make connect/test1 independent of localhost IPv6.

2017-11-11 Thread Noah Misch
Make connect/test1 independent of localhost IPv6. Since commit 868898739a8da9ab74c105b8349b7b5c711f265a, it has assumed "localhost" resolves to both ::1 and 127.0.0.1. We gain nothing from that assumption, and it does not hold in a default installation of Red Hat Enterprise Linux 5. Back-patch t

[COMMITTERS] pgsql: Make connect/test1 independent of localhost IPv6.

2017-11-11 Thread Noah Misch
Make connect/test1 independent of localhost IPv6. Since commit 868898739a8da9ab74c105b8349b7b5c711f265a, it has assumed "localhost" resolves to both ::1 and 127.0.0.1. We gain nothing from that assumption, and it does not hold in a default installation of Red Hat Enterprise Linux 5. Back-patch t

[COMMITTERS] pgsql: Make connect/test1 independent of localhost IPv6.

2017-11-11 Thread Noah Misch
Make connect/test1 independent of localhost IPv6. Since commit 868898739a8da9ab74c105b8349b7b5c711f265a, it has assumed "localhost" resolves to both ::1 and 127.0.0.1. We gain nothing from that assumption, and it does not hold in a default installation of Red Hat Enterprise Linux 5. Back-patch t

[COMMITTERS] pgsql: Add post-2010 ecpg tests to checktcp.

2017-11-11 Thread Noah Misch
Add post-2010 ecpg tests to checktcp. This suite had been a proper superset of the regular ecpg test suite, but the three newest tests didn't reach it. To make this less likely to recur, delete the extra schedule file and pass the TCP-specific test on the command line. Back-patch to 9.3 (all sup

[COMMITTERS] pgsql: Make connect/test1 independent of localhost IPv6.

2017-11-11 Thread Noah Misch
Make connect/test1 independent of localhost IPv6. Since commit 868898739a8da9ab74c105b8349b7b5c711f265a, it has assumed "localhost" resolves to both ::1 and 127.0.0.1. We gain nothing from that assumption, and it does not hold in a default installation of Red Hat Enterprise Linux 5. Back-patch t

[COMMITTERS] pgsql: Add post-2010 ecpg tests to checktcp.

2017-11-11 Thread Noah Misch
Add post-2010 ecpg tests to checktcp. This suite had been a proper superset of the regular ecpg test suite, but the three newest tests didn't reach it. To make this less likely to recur, delete the extra schedule file and pass the TCP-specific test on the command line. Back-patch to 9.3 (all sup

[COMMITTERS] pgsql: Make connect/test1 independent of localhost IPv6.

2017-11-11 Thread Noah Misch
Make connect/test1 independent of localhost IPv6. Since commit 868898739a8da9ab74c105b8349b7b5c711f265a, it has assumed "localhost" resolves to both ::1 and 127.0.0.1. We gain nothing from that assumption, and it does not hold in a default installation of Red Hat Enterprise Linux 5. Back-patch t

[COMMITTERS] pgsql: Fix connect/test1 expected output.

2017-11-11 Thread Noah Misch
Fix connect/test1 expected output. The test runs only as part of "checktcp". This is a back-patch to 9.5 and 9.4 of part of commit 868898739a8da9ab74c105b8349b7b5c711f265a. Oversight in commit 61bee9f756ce875f3b678099a6bb9654bd2fa21a. Branch -- REL9_4_STABLE Details --- https://git.post

[COMMITTERS] pgsql: Fix connect/test1 expected output.

2017-11-11 Thread Noah Misch
Fix connect/test1 expected output. The test runs only as part of "checktcp". This is a back-patch to 9.5 and 9.4 of part of commit 868898739a8da9ab74c105b8349b7b5c711f265a. Oversight in commit 61bee9f756ce875f3b678099a6bb9654bd2fa21a. Branch -- REL9_5_STABLE Details --- https://git.post

Re: [COMMITTERS] pgsql: Add hash partitioning.

2017-11-11 Thread Andreas Seltenreich
Robert Haas writes: > Add hash partitioning. sqlsmith triggers coredumps calling satisfies_hash_partition(). ISTM this function is lacking argument validation. Example: , | PostgreSQL stand-alone backend 11devel | backend> select satisfies_hash_partition('pg_class'::regclass,null,null,null)

[COMMITTERS] pgsql: Fix previous commit's test, for non-UTF8 databases with non-XML

2017-11-11 Thread Noah Misch
Fix previous commit's test, for non-UTF8 databases with non-XML builds. To ensure stable output, catch one more configuration-specific error. Back-patch to 9.3, like the commit that added the test. Branch -- REL9_3_STABLE Details --- https://git.postgresql.org/pg/commitdiff/f5260d5ad43ba

[COMMITTERS] pgsql: Fix previous commit's test, for non-UTF8 databases with non-XML

2017-11-11 Thread Noah Misch
Fix previous commit's test, for non-UTF8 databases with non-XML builds. To ensure stable output, catch one more configuration-specific error. Back-patch to 9.3, like the commit that added the test. Branch -- REL9_6_STABLE Details --- https://git.postgresql.org/pg/commitdiff/742471ef978c9

[COMMITTERS] pgsql: Fix previous commit's test, for non-UTF8 databases with non-XML

2017-11-11 Thread Noah Misch
Fix previous commit's test, for non-UTF8 databases with non-XML builds. To ensure stable output, catch one more configuration-specific error. Back-patch to 9.3, like the commit that added the test. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/4b865aee2582292a42a8

[COMMITTERS] pgsql: Fix previous commit's test, for non-UTF8 databases with non-XML

2017-11-11 Thread Noah Misch
Fix previous commit's test, for non-UTF8 databases with non-XML builds. To ensure stable output, catch one more configuration-specific error. Back-patch to 9.3, like the commit that added the test. Branch -- REL_10_STABLE Details --- https://git.postgresql.org/pg/commitdiff/075ced2a4c09f

[COMMITTERS] pgsql: Fix previous commit's test, for non-UTF8 databases with non-XML

2017-11-11 Thread Noah Misch
Fix previous commit's test, for non-UTF8 databases with non-XML builds. To ensure stable output, catch one more configuration-specific error. Back-patch to 9.3, like the commit that added the test. Branch -- REL9_5_STABLE Details --- https://git.postgresql.org/pg/commitdiff/739f1f6ac1b4d

[COMMITTERS] pgsql: Fix previous commit's test, for non-UTF8 databases with non-XML

2017-11-11 Thread Noah Misch
Fix previous commit's test, for non-UTF8 databases with non-XML builds. To ensure stable output, catch one more configuration-specific error. Back-patch to 9.3, like the commit that added the test. Branch -- REL9_4_STABLE Details --- https://git.postgresql.org/pg/commitdiff/e48fb50d8b486

[COMMITTERS] pgsql: Ignore XML declaration in xpath_internal(), for UTF8 databases.

2017-11-11 Thread Noah Misch
Ignore XML declaration in xpath_internal(), for UTF8 databases. When a value contained an XML declaration naming some other encoding, this function interpreted UTF8 bytes as the named encoding, yielding mojibake. xml_parse() already has similar logic. This would be necessary but not sufficient f

[COMMITTERS] pgsql: Ignore XML declaration in xpath_internal(), for UTF8 databases.

2017-11-11 Thread Noah Misch
Ignore XML declaration in xpath_internal(), for UTF8 databases. When a value contained an XML declaration naming some other encoding, this function interpreted UTF8 bytes as the named encoding, yielding mojibake. xml_parse() already has similar logic. This would be necessary but not sufficient f

[COMMITTERS] pgsql: Ignore XML declaration in xpath_internal(), for UTF8 databases.

2017-11-11 Thread Noah Misch
Ignore XML declaration in xpath_internal(), for UTF8 databases. When a value contained an XML declaration naming some other encoding, this function interpreted UTF8 bytes as the named encoding, yielding mojibake. xml_parse() already has similar logic. This would be necessary but not sufficient f

[COMMITTERS] pgsql: Ignore XML declaration in xpath_internal(), for UTF8 databases.

2017-11-11 Thread Noah Misch
Ignore XML declaration in xpath_internal(), for UTF8 databases. When a value contained an XML declaration naming some other encoding, this function interpreted UTF8 bytes as the named encoding, yielding mojibake. xml_parse() already has similar logic. This would be necessary but not sufficient f

[COMMITTERS] pgsql: Ignore XML declaration in xpath_internal(), for UTF8 databases.

2017-11-11 Thread Noah Misch
Ignore XML declaration in xpath_internal(), for UTF8 databases. When a value contained an XML declaration naming some other encoding, this function interpreted UTF8 bytes as the named encoding, yielding mojibake. xml_parse() already has similar logic. This would be necessary but not sufficient f

[COMMITTERS] pgsql: Ignore XML declaration in xpath_internal(), for UTF8 databases.

2017-11-11 Thread Noah Misch
Ignore XML declaration in xpath_internal(), for UTF8 databases. When a value contained an XML declaration naming some other encoding, this function interpreted UTF8 bytes as the named encoding, yielding mojibake. xml_parse() already has similar logic. This would be necessary but not sufficient f

Re: [COMMITTERS] pgsql: Remove secondary checkpoint

2017-11-11 Thread Andreas Seltenreich
Hi, sqlsmith doesn't like commit 4b0d28de06: , | regression=> select * from pg_control_checkpoint(); | server closed the connection unexpectedly | TRAP: FailedAssertion("!((atti->attalign) == 's')", File: "heaptuple.c", Line: 126) ` On a build with assertions disabled, the statement fai