[COMMITTERS] pgsql: Don't get confused if a WAL partial record header has xl_tot_len

2012-08-20 Thread Heikki Linnakangas
Don't get confused if a WAL partial record header has xl_tot_len == 0. If a WAL record header was split across pages, but xl_tot_len was 0, we would get confused and conclude that we had already read the whole record, and proceed to CRC check it. That can lead to a crash in RecordIsValid(), which

[COMMITTERS] pgsql: Fix bugs in contrib/pg_trgm's LIKE pattern analysis code.

2012-08-20 Thread Tom Lane
Fix bugs in contrib/pg_trgm's LIKE pattern analysis code. Extraction of trigrams did not process LIKE escape sequences properly, leading to possible misidentification of trigrams near escapes, resulting in incorrect index search results. Fujii Masao Branch -- REL9_2_STABLE Details --- h

[COMMITTERS] pgsql: Fix bugs in contrib/pg_trgm's LIKE pattern analysis code.

2012-08-20 Thread Tom Lane
Fix bugs in contrib/pg_trgm's LIKE pattern analysis code. Extraction of trigrams did not process LIKE escape sequences properly, leading to possible misidentification of trigrams near escapes, resulting in incorrect index search results. Fujii Masao Branch -- REL9_1_STABLE Details --- h

[COMMITTERS] pgsql: Fix bugs in contrib/pg_trgm's LIKE pattern analysis code.

2012-08-20 Thread Tom Lane
Fix bugs in contrib/pg_trgm's LIKE pattern analysis code. Extraction of trigrams did not process LIKE escape sequences properly, leading to possible misidentification of trigrams near escapes, resulting in incorrect index search results. Fujii Masao Branch -- master Details --- http://g

[COMMITTERS] pgsql: Tab complete "TABLE whatever DROP CONSTRAINT" with a constraint

2012-08-20 Thread Robert Haas
Tab complete "TABLE whatever DROP CONSTRAINT" with a constraint name. Jeff Janes Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/68386fc15b8ba01b5a4c4ed98c4a4d4968817cc9 Modified Files -- src/bin/psql/tab-complete.c | 16 1 files change

[COMMITTERS] pgsql: Improved tab completion for CLUSTER VERBOSE.

2012-08-20 Thread Robert Haas
Improved tab completion for CLUSTER VERBOSE. Jeff Janes Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/029722ac8e0d6b52872486b9d1907530fc8a0192 Modified Files -- src/bin/psql/tab-complete.c | 30 -- 1 files changed, 28 inser

[COMMITTERS] pgsql: Remove external PID file on postmaster exit

2012-08-20 Thread Peter Eisentraut
Remove external PID file on postmaster exit Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/ffdd5a0ee37c5ac38038aeff98328727e986d2da Modified Files -- src/backend/postmaster/postmaster.c | 15 ++- 1 files changed, 14 insertions(+), 1 deletion

[COMMITTERS] pgsql: Teach compiler that ereport(>=ERROR) does not return

2012-08-20 Thread Peter Eisentraut
Teach compiler that ereport(>=ERROR) does not return When elevel >= ERROR, we add an abort() call to the ereport() macro to give the compiler a hint that the ereport() expansion will not return, but the abort() isn't actually reached because the longjmp happens in errfinish(). Because the effect