• R/O
  • HTTP
  • SSH
  • HTTPS

syncrep: List of commits

PostgreSQL9.0用の同期レプリケーションパッチ


RSS
Rev. Time Author
8d89549 2011-05-20 04:14:56 Peter Eisentraut

Update config.guess and config.sub

bb46d42 2011-05-20 03:38:24 Peter Eisentraut

Consistent spacing for lengthy error messages

Also, we removed the display of the current value of
max_connections/MaxBackends from some messages earlier, because it was
confusing, so do that in the remaining one as well.

a937b07 2011-05-20 03:03:15 Magnus Hagander

Add example for replication in pg_hba.conf

Selena Deckelmann

74aaa21 2011-05-20 01:12:04 Robert Haas

Fix race condition in CheckTargetForConflictsIn.

Dan Ports

6b449d9 2011-05-19 12:56:18 Alvaro Herrera

Fix declaration of $_TD in "strict" trigger functions

This was broken in commit ef19dc6d39dd2490ff61489da55d95d6941140bf by
the Bunce/Hunsaker/Dunstan team, which moved the declaration from
plperl_create_sub to plperl_call_perl_trigger_func. This doesn't
actually work because the validator code would not find the variable
declared; and even if you manage to get past the validator, it still
doesn't work because get_sv("_TD", GV_ADD) doesn't have the expected
effect. The only reason this got beyond testing is that it only fails
in strict mode.

We need to declare it as a global just like %_SHARED; it is simpler than
trying to actually do what the patch initially intended, and is said to
have the same performance benefit.

As a more serious issue, fix $_TD not being properly local()ized,
meaning nested trigger functions would clobber $_TD.

Alex Hunsaker, per test report from Greg Mullane

ea896da 2011-05-19 11:49:22 Heikki Linnakangas

Replace strdup() with pstrdup(), to avoid leaking memory.

It's been like this since the seg module was introduced, so backpatch to
8.2 which is the oldest supported version.

1f35944 2011-05-19 11:22:40 Bruce Momjian

In pg_upgrade, clean up handling of invalid directory specification by
checking the stat() errno value more strictly.

772a5f1 2011-05-19 07:37:25 Bruce Momjian

Improve pg_upgrade error reporting if the bin or data directories do not
exist or are not directories.

4a6a5c8 2011-05-19 07:19:57 Peter Eisentraut

Remove obsolete comment

c13dc64 2011-05-19 07:14:45 Peter Eisentraut

Spell checking and markup refinement

0ee391b 2011-05-19 06:30:31 Peter Eisentraut

/contrib/foo -> contrib/foo

Since contrib is a relative directory specification, a leading slash
is inappropriate.

92ff915 2011-05-19 01:25:34 Bruce Momjian

Improve pg_upgrade X_OK comment.

6fbf4e0 2011-05-19 01:13:37 Bruce Momjian

Fix pg_upgrade build problem on Windows when using X_OK access
permission check on the current directory.

b3bc63e 2011-05-17 05:41:52 Tom Lane

Fix pg_dump's handling of extension-member casts and languages.

pg_dump has some heuristic rules for whether to dump casts and procedural
languages, since it's not all that easy to distinguish built-in ones from
user-defined ones. However, we should not apply those rules to objects
that belong to an extension, but just use the perfectly well-defined rules
for what to do with extension member objects. Otherwise we might
mistakenly lose extension member objects during a binary upgrade (which is
the only time that we'd want to dump extension members).

e728701 2011-05-17 01:32:36 Bruce Momjian

Update pg_upgrade directory check error message.

8a849cd 2011-05-17 00:22:25 Bruce Momjian

Remove redundant privilege doc sentences.

bda27e5 2011-05-17 00:01:29 Bruce Momjian

Add pg_upgrade check to make sure the user has full access permission in
the current directory; if not, throw an error.

6c19bd9 2011-05-16 23:48:40 Bruce Momjian

Allow pg_upgrade to honor libpq environment variables. Add 'local'
checks for PGHOST and PGHOSTADDR.

78b66cf 2011-05-16 12:42:12 Andrew Dunstan

Quote isolationtester command name so Windows will not think dot is the command.

df15d11 2011-05-16 12:12:36 Andrew Dunstan

Add required psqldir setting for isolation checks.

ec645ef 2011-05-16 07:45:26 Andrew Dunstan

Fix bad macro call noticed by MSVC compiler.

20bacc9 2011-05-16 07:03:19 Andrew Dunstan

Add missing check function lookup.

840826e 2011-05-16 06:55:05 Andrew Dunstan

Build and run isolation test programs under MSVC.

9bb6d97 2011-05-14 04:51:03 Robert Haas

More cleanup of FOREIGN TABLE permissions handling.

This commit fixes psql, pg_dump, and the information schema to be
consistent with the backend changes which I made as part of commit
be90032e0d1cf473bdd99aee94218218f59f29f1, and also includes a
related documentation tweak.

Shigeru Hanada, with slight adjustment.

c5ab842 2011-05-13 06:10:30 Robert Haas

Kill stray "not".

30cf86f 2011-05-13 00:57:05 Tom Lane

Fix write-past-buffer-end in ldapServiceLookup().

The code to assemble ldap_get_values_len's output into a single string
wrote the terminating null one byte past where it should. Fix that,
and make some other cosmetic adjustments to make the code a trifle more
readable and more in line with usual Postgres coding style.

Also, free the "result" string when done with it, to avoid a permanent
memory leak.

Bug report and patch by Albe Laurenz, cosmetic adjustments by me.

8d0df20 2011-05-13 00:56:38 Tom Lane

Fix write-past-buffer-end in ldapServiceLookup().

The code to assemble ldap_get_values_len's output into a single string
wrote the terminating null one byte past where it should. Fix that,
and make some other cosmetic adjustments to make the code a trifle more
readable and more in line with usual Postgres coding style.

Also, free the "result" string when done with it, to avoid a permanent
memory leak.

Bug report and patch by Albe Laurenz, cosmetic adjustments by me.

c6eb574 2011-05-12 21:52:56 Alvaro Herrera

Fix assorted typos

e05b866 2011-05-12 08:57:38 Tom Lane

Split PGC_S_DEFAULT into two values, for true boot_val vs computed default.

Failure to distinguish these cases is the real cause behind the recent
reports of Windows builds crashing on 'infinity'::timestamp, which was
directly due to failure to establish a value of timezone_abbreviations
in postmaster child processes. The postmaster had the desired value,
but write_one_nondefault_variable() didn't transmit it to backends.

To fix that, invent a new value PGC_S_DYNAMIC_DEFAULT, and be sure to use
that or PGC_S_ENV_VAR (as appropriate) for "default" settings that are
computed during initialization. (We need both because there's at least
one variable that could receive a value from either source.)

This commit also fixes ProcessConfigFile's failure to restore the correct
default value for certain GUC variables if they are set in postgresql.conf
and then removed/commented out of the file. We have to recompute and
reinstall the value for any GUC variable that could have received a value
from PGC_S_DYNAMIC_DEFAULT or PGC_S_ENV_VAR sources, and there were a
number of oversights. (That whole thing is a crock that needs to be
redesigned, but not today.)

However, I intentionally didn't make it work "exactly right" for the cases
of timezone and log_timezone. The exactly right behavior would involve
running select_default_timezone, which we'd have to do independently in
each postgres process, causing the whole database to become entirely
unresponsive for as much as several seconds. That didn't seem like a good
idea, especially since the variable's removal from postgresql.conf might be
just an accidental edit. Instead the behavior is to adopt the previously
active setting as if it were default.

Note that this patch creates an ABI break for extensions that use any of
the PGC_S_XXX constants; they'll need to be recompiled.

6fc6686 2011-05-12 03:43:01 Tom Lane

Clean up parsing of CREATE TRIGGER's argument list.

Use ColLabel in place of ColId, so that reserved words are accepted as if
they were not reserved. Also, remove BCONST and XCONST, which were never
documented as allowed. Allowing those exposes to users an implementation
detail, namely the format in which the lexer outputs such constants, that
seems unwise to expose.

No documentation change needed, since this just makes the code act more
like you'd expect from reading the CREATE TRIGGER man page.

Per complaint from Szymon Guz and subsequent discussion.

Show on old repository browser