[COMMITTERS] pgsql: Fix base backup streaming xlog from standby

2012-05-25 Thread Magnus Hagander
Fix base backup streaming xlog from standby When backing up from a standby server, the backup process will not automatically switch xlog segment. So we must accept a partially transferred xlog file in this case, but rename it into position anyway. In passing, merge the two callbacks for segment e

[COMMITTERS] pgsql: Have pg_upgrade only use one extra log file for Win32, not two.

2012-05-25 Thread Bruce Momjian
Have pg_upgrade only use one extra log file for Win32, not two. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/45ca31d6a7eaf91dc65fd5cf2b140320feb3fa3f Modified Files -- contrib/pg_upgrade/pg_upgrade.c |2 +- contrib/pg_upgrade/pg_upgrade.h |3 ++-

[COMMITTERS] pgsql: Use binary search instead of brute-force scan in findNamespace()

2012-05-25 Thread Tom Lane
Use binary search instead of brute-force scan in findNamespace(). The previous coding presented a significant bottleneck when dumping databases containing many thousands of schemas, since the total time spent searching would increase roughly as O(N^2) in the number of objects. Noted by Jeff Janes,

[COMMITTERS] pgsql: Use binary search instead of brute-force scan in findNamespace()

2012-05-25 Thread Tom Lane
Use binary search instead of brute-force scan in findNamespace(). The previous coding presented a significant bottleneck when dumping databases containing many thousands of schemas, since the total time spent searching would increase roughly as O(N^2) in the number of objects. Noted by Jeff Janes,

[COMMITTERS] pgsql: Use binary search instead of brute-force scan in findNamespace()

2012-05-25 Thread Tom Lane
Use binary search instead of brute-force scan in findNamespace(). The previous coding presented a significant bottleneck when dumping databases containing many thousands of schemas, since the total time spent searching would increase roughly as O(N^2) in the number of objects. Noted by Jeff Janes,

[COMMITTERS] pgsql: Use binary search instead of brute-force scan in findNamespace()

2012-05-25 Thread Tom Lane
Use binary search instead of brute-force scan in findNamespace(). The previous coding presented a significant bottleneck when dumping databases containing many thousands of schemas, since the total time spent searching would increase roughly as O(N^2) in the number of objects. Noted by Jeff Janes,

[COMMITTERS] pgsql: Use binary search instead of brute-force scan in findNamespace()

2012-05-25 Thread Tom Lane
Use binary search instead of brute-force scan in findNamespace(). The previous coding presented a significant bottleneck when dumping databases containing many thousands of schemas, since the total time spent searching would increase roughly as O(N^2) in the number of objects. Noted by Jeff Janes,

[COMMITTERS] pgsql: Fix string truncation to be multibyte-aware in text_name and bpc

2012-05-25 Thread Tom Lane
Fix string truncation to be multibyte-aware in text_name and bpchar_name. Previously, casts to name could generate invalidly-encoded results. Also, make these functions match namein() more exactly, by consistently using palloc0() instead of ad-hoc zeroing code. Back-patch to all supported branch

[COMMITTERS] pgsql: Fix string truncation to be multibyte-aware in text_name and bpc

2012-05-25 Thread Tom Lane
Fix string truncation to be multibyte-aware in text_name and bpchar_name. Previously, casts to name could generate invalidly-encoded results. Also, make these functions match namein() more exactly, by consistently using palloc0() instead of ad-hoc zeroing code. Back-patch to all supported branch

[COMMITTERS] pgsql: Fix string truncation to be multibyte-aware in text_name and bpc

2012-05-25 Thread Tom Lane
Fix string truncation to be multibyte-aware in text_name and bpchar_name. Previously, casts to name could generate invalidly-encoded results. Also, make these functions match namein() more exactly, by consistently using palloc0() instead of ad-hoc zeroing code. Back-patch to all supported branch

[COMMITTERS] pgsql: Fix string truncation to be multibyte-aware in text_name and bpc

2012-05-25 Thread Tom Lane
Fix string truncation to be multibyte-aware in text_name and bpchar_name. Previously, casts to name could generate invalidly-encoded results. Also, make these functions match namein() more exactly, by consistently using palloc0() instead of ad-hoc zeroing code. Back-patch to all supported branch

[COMMITTERS] pgsql: Fix string truncation to be multibyte-aware in text_name and bpc

2012-05-25 Thread Tom Lane
Fix string truncation to be multibyte-aware in text_name and bpchar_name. Previously, casts to name could generate invalidly-encoded results. Also, make these functions match namein() more exactly, by consistently using palloc0() instead of ad-hoc zeroing code. Back-patch to all supported branch