[COMMITTERS] pgsql: Improve description of loread/lowrite.

2013-06-12 Thread Robert Haas
Improve description of loread/lowrite. Patch by me, reviewed by Tatsuo Ishii. Branch -- REL9_0_STABLE Details --- http://git.postgresql.org/pg/commitdiff/6803921b545bdae678bb381d5b04f4f6ae24d1b5 Modified Files -- doc/src/sgml/lobj.sgml | 20 1 file chan

[COMMITTERS] pgsql: Improve description of loread/lowrite.

2013-06-12 Thread Robert Haas
Improve description of loread/lowrite. Patch by me, reviewed by Tatsuo Ishii. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/c1d729b419ee876c32ddf4ac3a85fa89a6b4a89b Modified Files -- doc/src/sgml/lobj.sgml | 20 1 file changed, 12

[COMMITTERS] pgsql: Improve description of loread/lowrite.

2013-06-12 Thread Robert Haas
Improve description of loread/lowrite. Patch by me, reviewed by Tatsuo Ishii. Branch -- REL9_1_STABLE Details --- http://git.postgresql.org/pg/commitdiff/e19c932edf199068895b4e3bc53218db59407f0b Modified Files -- doc/src/sgml/lobj.sgml | 20 1 file chan

[COMMITTERS] pgsql: Improve description of loread/lowrite.

2013-06-12 Thread Robert Haas
Improve description of loread/lowrite. Patch by me, reviewed by Tatsuo Ishii. Branch -- REL9_2_STABLE Details --- http://git.postgresql.org/pg/commitdiff/40baa43588fed893644aac1a2606e6e29e8d6f75 Modified Files -- doc/src/sgml/lobj.sgml | 20 1 file chan

[COMMITTERS] pgsql: Improve description of loread/lowrite.

2013-06-12 Thread Robert Haas
Improve description of loread/lowrite. Patch by me, reviewed by Tatsuo Ishii. Branch -- REL8_4_STABLE Details --- http://git.postgresql.org/pg/commitdiff/0da76f384d71cffeb695391e97713e0e5bc58c4b Modified Files -- doc/src/sgml/lobj.sgml | 21 + 1 file cha

[COMMITTERS] pgsql: Fix unescaping of JSON Unicode escapes, especially for non-UTF8.

2013-06-12 Thread Andrew Dunstan
Fix unescaping of JSON Unicode escapes, especially for non-UTF8. Per discussion on -hackers. We treat Unicode escapes when unescaping them similarly to the way we treat them in PostgreSQL string literals. Escapes in the ASCII range are always accepted, no matter what the database encoding. Escape

[COMMITTERS] pgsql: Improve updatability checking for views and foreign tables.

2013-06-12 Thread Tom Lane
Improve updatability checking for views and foreign tables. Extend the FDW API (which we already changed for 9.3) so that an FDW can report whether specific foreign tables are insertable/updatable/deletable. The default assumption continues to be that they're updatable if the relevant executor cal

[COMMITTERS] pgsql: Avoid reading below the start of a stack variable in tokenize_fi

2013-06-12 Thread Noah Misch
Avoid reading below the start of a stack variable in tokenize_file(). We would wrongly overwrite the prior stack byte if it happened to contain '\n' or '\r'. New in 9.3, so no back-patch. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/3a5d0c55338e6beb4c01ed5fadb146

[COMMITTERS] pgsql: Observe array length in HaveVirtualXIDsDelayingChkpt().

2013-06-12 Thread Noah Misch
Observe array length in HaveVirtualXIDsDelayingChkpt(). Since commit f21bb9cfb5646e1793dcc9c0ea697bab99afa523, this function ignores the caller-provided length and loops until it finds a terminator, which GetVirtualXIDsDelayingChkpt() never adds. Restore the previous loop control logic. In passi

[COMMITTERS] pgsql: Avoid reading past datum end when parsing JSON.

2013-06-12 Thread Noah Misch
Avoid reading past datum end when parsing JSON. Several loops in the JSON parser examined a byte in memory just before checking whether its address was in-bounds, so they could read one byte beyond the datum's allocation. A SIGSEGV is possible. New in 9.3, so no back-patch. Branch -- master

[COMMITTERS] pgsql: Don't use ordinary NULL-terminated strings as Name datums.

2013-06-12 Thread Noah Misch
Don't use ordinary NULL-terminated strings as Name datums. Consumers are entitled to read the full 64 bytes pertaining to a Name; using a shorter NULL-terminated string leads to reading beyond the end its allocation; a SIGSEGV is possible. Use the frequent idiom of copying to a NameData on the st

[COMMITTERS] pgsql: Don't pass oidvector by value.

2013-06-12 Thread Noah Misch
Don't pass oidvector by value. Since the structure ends with a flexible array, doing so truncates any vector having more than one element. New in 9.3, so no back-patch. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/813895e4acfa646c6c0405a0a8c5d05637f42865 Modifie