[COMMITTERS] pgsql: Invent on_exit_nicely for pg_dump.

2012-02-16 Thread Robert Haas
Invent on_exit_nicely for pg_dump. Per recent discussions on pgsql-hackers regarding parallel pg_dump. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/e9a22259c45e235aaa30f0d068f767d9c0f818a0 Modified Files -- src/bin/pg_dump/common.c |6

[COMMITTERS] pgsql: Refactor pg_dump.c to avoid duplicating returns-one-row check.

2012-02-16 Thread Robert Haas
Refactor pg_dump.c to avoid duplicating returns-one-row check. Any patches apt to get broken have probably already been broken by the error-handling cleanups I just did, so we might as well clean this up at the same time. Branch -- master Details --- http://git.postgresql.org/pg/commitdi

[COMMITTERS] pgsql: pg_dump: Remove global connection pointer.

2012-02-16 Thread Robert Haas
pg_dump: Remove global connection pointer. Parallel pg_dump wants to have multiple ArchiveHandle objects, and therefore multiple PGconns, in play at the same time. This should be just about the end of the refactoring that we need in order to make that workable. Branch -- master Details

[COMMITTERS] pgsql: pg_dump: Miscellaneous tightening based on recent refactorings.

2012-02-16 Thread Robert Haas
pg_dump: Miscellaneous tightening based on recent refactorings. Use exit_horribly() and ExecuteSqlQueryForSingleRow() in various places where it's equivalent, or nearly equivalent, to the prior coding. Apart from being more compact, this also makes the error messages for the wrong-number-of-tuples

[COMMITTERS] pgsql: Fix longstanding error in contrib/intarray's int[] & int[] opera

2012-02-16 Thread Tom Lane
Fix longstanding error in contrib/intarray's int[] & int[] operator. The array intersection code would give wrong results if the first entry of the correct output array would be "1". (I think only this value could be at risk, since the previous word would always be a lower-bound entry with that f

[COMMITTERS] pgsql: Fix longstanding error in contrib/intarray's int[] & int[] opera

2012-02-16 Thread Tom Lane
Fix longstanding error in contrib/intarray's int[] & int[] operator. The array intersection code would give wrong results if the first entry of the correct output array would be "1". (I think only this value could be at risk, since the previous word would always be a lower-bound entry with that f

[COMMITTERS] pgsql: Fix longstanding error in contrib/intarray's int[] & int[] opera

2012-02-16 Thread Tom Lane
Fix longstanding error in contrib/intarray's int[] & int[] operator. The array intersection code would give wrong results if the first entry of the correct output array would be "1". (I think only this value could be at risk, since the previous word would always be a lower-bound entry with that f

[COMMITTERS] pgsql: Fix longstanding error in contrib/intarray's int[] & int[] opera

2012-02-16 Thread Tom Lane
Fix longstanding error in contrib/intarray's int[] & int[] operator. The array intersection code would give wrong results if the first entry of the correct output array would be "1". (I think only this value could be at risk, since the previous word would always be a lower-bound entry with that f

[COMMITTERS] pgsql: Fix longstanding error in contrib/intarray's int[] & int[] opera

2012-02-16 Thread Tom Lane
Fix longstanding error in contrib/intarray's int[] & int[] operator. The array intersection code would give wrong results if the first entry of the correct output array would be "1". (I think only this value could be at risk, since the previous word would always be a lower-bound entry with that f