git.postgresql.org Git - postgresql.git/log

git projects / postgresql.git / log
? search:
summary | shortlog | log | commit | commitdiff | tree
first ⋅ prev ⋅ next
postgresql.git
15 years agoAdd pg_upgrade docs about binary compatibility, per Robert Haas.
commit | commitdiff | tree
Bruce Momjian [2010年5月25日 14:50:56 +0000 (14:50 +0000)]
Add pg_upgrade docs about binary compatibility, per Robert Haas.

15 years agoAdded a configure test for "long long" datatypes. So far this is only used in ecpg...
commit | commitdiff | tree
Michael Meskes [2010年5月25日 14:32:55 +0000 (14:32 +0000)]
Added a configure test for "long long" datatypes. So far this is only used in ecpg and replaces the old test that was kind of hackish.

15 years agoAdd Japanese Implementation file to CVS.
commit | commitdiff | tree
Bruce Momjian [2010年5月25日 02:56:36 +0000 (02:56 +0000)]
Add Japanese Implementation file to CVS.

15 years agoRe-order pg_upgrade 'help' options to be alphabetical.
commit | commitdiff | tree
Bruce Momjian [2010年5月25日 02:55:58 +0000 (02:55 +0000)]
Re-order pg_upgrade 'help' options to be alphabetical.

15 years agoIn pg_upgrade, test for datallowconn instead of hardcoding template0.
commit | commitdiff | tree
Bruce Momjian [2010年5月24日 19:52:33 +0000 (19:52 +0000)]
In pg_upgrade, test for datallowconn instead of hardcoding template0.

15 years agoUpdate pg_upgrade docs to show options in alphabetical order, and
commit | commitdiff | tree
Bruce Momjian [2010年5月24日 17:43:39 +0000 (17:43 +0000)]
Update pg_upgrade docs to show options in alphabetical order, and
improve 8.3 doc limitations paragraph.

15 years agoSplit apart pg_upgrade user lookup and root check so '--help' shows
commit | commitdiff | tree
Bruce Momjian [2010年5月24日 16:34:35 +0000 (16:34 +0000)]
Split apart pg_upgrade user lookup and root check so '--help' shows
proper default username.

15 years agoissue_warnings() has no business freeing its parameter, especially not when
commit | commitdiff | tree
Tom Lane [2010年5月23日 16:54:13 +0000 (16:54 +0000)]
issue_warnings() has no business freeing its parameter, especially not when
its sole caller does that too. Jan Matousek, via Pavel Stehule

15 years agoFix oversight in join removal patch: we have to delete the removed relation
commit | commitdiff | tree
Tom Lane [2010年5月23日 16:34:38 +0000 (16:34 +0000)]
Fix oversight in join removal patch: we have to delete the removed relation
from SpecialJoinInfo relid sets as well. Per example from Vaclav Novotny.

15 years agoUnbreak \h; can't do strlen(NULL).
commit | commitdiff | tree
Robert Haas [2010年5月21日 17:37:44 +0000 (17:37 +0000)]
Unbreak \h; can't do strlen(NULL).

This was broken by the following commmit. Although the original commit was
backpatched all the way to 7.4, this particular bug exists only in the version
applied to HEAD.

http://archives.postgresql.org/pgsql-committers/2010-05/msg00058.php

15 years agoEcpg now accepts "long long" datatypes even if "long" is 64bit wide. This used to...
commit | commitdiff | tree
Michael Meskes [2010年5月20日 22:10:46 +0000 (22:10 +0000)]
Ecpg now accepts "long long" datatypes even if "long" is 64bit wide. This used to cover the equally long "long long" type. This patch closes bug #5464.

15 years agoFix index entry for lo_compat_privileges, per bug #5467 from KOIZUMI Satoru.
commit | commitdiff | tree
Tom Lane [2010年5月20日 20:32:27 +0000 (20:32 +0000)]
Fix index entry for lo_compat_privileges, per bug #5467 from KOIZUMI Satoru.

15 years agoChange the "N. Central Asia Standard Time" timezone to map to
commit | commitdiff | tree
Magnus Hagander [2010年5月20日 14:13:11 +0000 (14:13 +0000)]
Change the "N. Central Asia Standard Time" timezone to map to
Asia/Novosibirsk on Windows.

Microsoft changed the behaviour of this zone in the timezone update
from KB976098. The zones differ in handling of DST, and the old
zone was just removed.

Noted by Dmitry Funk

15 years agoShow oid2name command-line arguments in documentation like we do for
commit | commitdiff | tree
Bruce Momjian [2010年5月20日 03:45:38 +0000 (03:45 +0000)]
Show oid2name command-line arguments in documentation like we do for
non-contrib command-line tools (no longer in a single table display).

15 years agoSGML markup cleanup for pg_upgrade.
commit | commitdiff | tree
Bruce Momjian [2010年5月19日 20:47:18 +0000 (20:47 +0000)]
SGML markup cleanup for pg_upgrade.

15 years agoDoc change: Rename of directory no longer required for pg_migrator 9.0.
commit | commitdiff | tree
Bruce Momjian [2010年5月19日 20:40:33 +0000 (20:40 +0000)]
Doc change: Rename of directory no longer required for pg_migrator 9.0.

Alvaro

15 years agopg_upgrade doc cleanup
commit | commitdiff | tree
Bruce Momjian [2010年5月19日 20:37:03 +0000 (20:37 +0000)]
pg_upgrade doc cleanup

Stefan Kaltenbrunner

15 years agoRestore oid2name doc change.
commit | commitdiff | tree
Bruce Momjian [2010年5月19日 20:22:05 +0000 (20:22 +0000)]
Restore oid2name doc change.

15 years agoAdd command-line documentation for pg_upgrade.
commit | commitdiff | tree
Bruce Momjian [2010年5月19日 20:20:38 +0000 (20:20 +0000)]
Add command-line documentation for pg_upgrade.

15 years agoSimplify pg_upgrade queries by using IN instead of multiple OR clauses
commit | commitdiff | tree
Bruce Momjian [2010年5月19日 18:56:47 +0000 (18:56 +0000)]
Simplify pg_upgrade queries by using IN instead of multiple OR clauses
comparing the same column to multiple values.

15 years agoFor pg_upgrade, update template0's datfrozenxid and its relfrozenxids to
commit | commitdiff | tree
Bruce Momjian [2010年5月19日 18:27:43 +0000 (18:27 +0000)]
For pg_upgrade, update template0's datfrozenxid and its relfrozenxids to
match the behavior of autovacuum, which does this as the xid advances
even if autovacuum is turned off.

15 years agoRefer to pg_ident.conf as config file for username mapping, as it's
commit | commitdiff | tree
Magnus Hagander [2010年5月18日 19:05:17 +0000 (19:05 +0000)]
Refer to pg_ident.conf as config file for username mapping, as it's
now used for other things than just ident authentication.

Noted by Stephen Frost

15 years agoUse a 'datallowconn' check for avoiding 'template0', rather than
commit | commitdiff | tree
Bruce Momjian [2010年5月18日 18:40:51 +0000 (18:40 +0000)]
Use a 'datallowconn' check for avoiding 'template0', rather than
hardcoding a 'template0' check, per suggestion from Alvaro.

This might fix a problem where someone has allowed 'template0'
connections, but it is a cleaner approach even if doesn't fix the
bug.

15 years agoMake pg_upgrade documentation refer to 9.0 instead of 8.4.
commit | commitdiff | tree
Magnus Hagander [2010年5月18日 15:41:36 +0000 (15:41 +0000)]
Make pg_upgrade documentation refer to 9.0 instead of 8.4.

Fujii Masao

15 years agoFix regression tests to match error message change
commit | commitdiff | tree
Andrew Dunstan [2010年5月18日 03:35:34 +0000 (03:35 +0000)]
Fix regression tests to match error message change

15 years agoAdd pg_upgrade TESTING files explaining a testing method.
commit | commitdiff | tree
Bruce Momjian [2010年5月18日 03:26:12 +0000 (03:26 +0000)]
Add pg_upgrade TESTING files explaining a testing method.

15 years agoMove pg_notify() details to a subsection within the NOTIFY reference page.
commit | commitdiff | tree
Robert Haas [2010年5月18日 02:28:53 +0000 (02:28 +0000)]
Move pg_notify() details to a subsection within the NOTIFY reference page.

This allows the index to reference the pg_notify() subsection specifically,
rather than Notes section of the NOTIFY reference page more generally.

Fujii Masao

15 years agoMake table in example less wide.
commit | commitdiff | tree
Alvaro Herrera [2010年5月17日 20:50:44 +0000 (20:50 +0000)]
Make table in example less wide.

15 years agoFollow up a visit from the style police.
commit | commitdiff | tree
Andrew Dunstan [2010年5月17日 19:43:04 +0000 (19:43 +0000)]
Follow up a visit from the style police.

15 years agoClarify plperl subroutine name release notes item, remove now redundant Safe.pm item.
commit | commitdiff | tree
Andrew Dunstan [2010年5月17日 17:46:13 +0000 (17:46 +0000)]
Clarify plperl subroutine name release notes item, remove now redundant Safe.pm item.

15 years agoInsert line breaks in two places in SQL functions documentation.
commit | commitdiff | tree
Robert Haas [2010年5月16日 04:35:04 +0000 (04:35 +0000)]
Insert line breaks in two places in SQL functions documentation.

This avoids a formatting problem in the PDF output. In the HTML output this
isn't necessary, but we've done similar things elsewhere in the documentation
so I think it's OK to do it here, too. I've refrained from breaking a longish
error message which also causes problems for the PDF output, because that would
make the HTML output look wrong.

Erik Rijkers

15 years agoFix longstanding typo in V1 calling conventions documentation.
commit | commitdiff | tree
Robert Haas [2010年5月16日 03:55:41 +0000 (03:55 +0000)]
Fix longstanding typo in V1 calling conventions documentation.

Erik Rijkers

15 years agoEnsure that pg_restore -l will output DATABASE entries whether or not -C
commit | commitdiff | tree
Tom Lane [2010年5月15日 21:41:16 +0000 (21:41 +0000)]
Ensure that pg_restore -l will output DATABASE entries whether or not -C
is specified. Per bug report from Russell Smith and ensuing discussion.
Since this is a corner case behavioral change, I'm going to be conservative
and not back-patch it.

In passing, also rename the RestoreOptions field for the -C switch to
something less generic than "create".

15 years agoRename PM_RECOVERY_CONSISTENT and PMSIGNAL_RECOVERY_CONSISTENT.
commit | commitdiff | tree
Robert Haas [2010年5月15日 20:01:32 +0000 (20:01 +0000)]
Rename PM_RECOVERY_CONSISTENT and PMSIGNAL_RECOVERY_CONSISTENT.

The new names PM_HOT_STANDBY and PMSIGNAL_BEGIN_HOT_STANDBY more accurately
reflect their actual function.

15 years agoImprove documentation of pg_restore's -l and -L switches to point out their
commit | commitdiff | tree
Tom Lane [2010年5月15日 18:11:07 +0000 (18:11 +0000)]
Improve documentation of pg_restore's -l and -L switches to point out their
interactions with filtering switches, such as -n and -t. Per a complaint
from Russell Smith.

15 years agoSpell __NetBSD__ the same way everywhere. Per Giles Lean.
commit | commitdiff | tree
Tom Lane [2010年5月15日 14:44:13 +0000 (14:44 +0000)]
Spell __NetBSD__ the same way everywhere. Per Giles Lean.

15 years agoAdjust pg_upgrade BSD defines for scandir(), per report from Giles Lean
commit | commitdiff | tree
Bruce Momjian [2010年5月15日 10:21:54 +0000 (10:21 +0000)]
Adjust pg_upgrade BSD defines for scandir(), per report from Giles Lean

15 years agoUse __bsdi__ consistently.
commit | commitdiff | tree
Bruce Momjian [2010年5月15日 10:14:20 +0000 (10:14 +0000)]
Use __bsdi__ consistently.

15 years agoChange bsdi define to __bsdi__
commit | commitdiff | tree
Bruce Momjian [2010年5月15日 10:08:28 +0000 (10:08 +0000)]
Change bsdi define to __bsdi__

15 years agoFix typos in comments, spotted by Josh Kupershmidt.
commit | commitdiff | tree
Heikki Linnakangas [2010年5月15日 09:31:57 +0000 (09:31 +0000)]
Fix typos in comments, spotted by Josh Kupershmidt.

15 years agoFix bug in processing of checkpoint time for max_standby_delay. Latest
commit | commitdiff | tree
Simon Riggs [2010年5月15日 07:14:43 +0000 (07:14 +0000)]
Fix bug in processing of checkpoint time for max_standby_delay. Latest
log time was incorrectly set, typically leading to dates in the past,
which would cause more cancellations in Hot Standby on a quiet server.

15 years agoWe now accept read-only connections in state PM_RECOVERY_CONSISTENT.
commit | commitdiff | tree
Robert Haas [2010年5月14日 18:08:33 +0000 (18:08 +0000)]
We now accept read-only connections in state PM_RECOVERY_CONSISTENT.

15 years agoRemove CRs.
commit | commitdiff | tree
Itagaki Takahiro [2010年5月14日 10:37:02 +0000 (10:37 +0000)]
Remove CRs.

15 years agoAdd many new Asserts in code and fix simple bug that slipped through
commit | commitdiff | tree
Simon Riggs [2010年5月14日 07:11:49 +0000 (07:11 +0000)]
Add many new Asserts in code and fix simple bug that slipped through
without them, related to previous commit. Report by Bruce Momjian.

15 years agoFix another obvious bug pointed out by a compiler warning.
commit | commitdiff | tree
Tom Lane [2010年5月14日 00:43:42 +0000 (00:43 +0000)]
Fix another obvious bug pointed out by a compiler warning.

15 years agoRemove another unsafe use of random data as a format string.
commit | commitdiff | tree
Tom Lane [2010年5月14日 00:39:51 +0000 (00:39 +0000)]
Remove another unsafe use of random data as a format string.

15 years agoGet rid of unsafe sprintf and snprintf usages. Per compiler warnings.
commit | commitdiff | tree
Tom Lane [2010年5月14日 00:32:21 +0000 (00:32 +0000)]
Get rid of unsafe sprintf and snprintf usages. Per compiler warnings.

15 years agoSpell __darwin__ correctly, to suppress compiler warning on OSX.
commit | commitdiff | tree
Tom Lane [2010年5月14日 00:19:46 +0000 (00:19 +0000)]
Spell __darwin__ correctly, to suppress compiler warning on OSX.

15 years agoUse NAMEDATALEN instead of local define.
commit | commitdiff | tree
Bruce Momjian [2010年5月14日 00:13:38 +0000 (00:13 +0000)]
Use NAMEDATALEN instead of local define.

Modify path separators for Win32.

Per ideas from Takahiro Itagaki

15 years agoRemove all mentions of EnterpriseDB Advanced Server from pg_upgrade;
commit | commitdiff | tree
Bruce Momjian [2010年5月13日 22:51:00 +0000 (22:51 +0000)]
Remove all mentions of EnterpriseDB Advanced Server from pg_upgrade;
EDB must maintain their own patch set for this.

15 years agoFix up lame idea of not using autoconf to determine if platform has scandir().
commit | commitdiff | tree
Tom Lane [2010年5月13日 22:07:43 +0000 (22:07 +0000)]
Fix up lame idea of not using autoconf to determine if platform has scandir().
Should fix buildfarm failures.

15 years agoFix MSVC builds for recent plperl changes. Go back to version 8.2, which is
commit | commitdiff | tree
Andrew Dunstan [2010年5月13日 21:33:00 +0000 (21:33 +0000)]
Fix MSVC builds for recent plperl changes. Go back to version 8.2, which is
where we started supporting MSVC builds.

Security: CVE-2010-1169

15 years agoUpdate release notes with security issues.
commit | commitdiff | tree
Tom Lane [2010年5月13日 21:26:59 +0000 (21:26 +0000)]
Update release notes with security issues.

Security: CVE-2010-1169, CVE-2010-1170

15 years agoUse an entity instead of non-ASCII letter. Thom Brown
commit | commitdiff | tree
Tom Lane [2010年5月13日 19:16:14 +0000 (19:16 +0000)]
Use an entity instead of non-ASCII letter. Thom Brown

15 years agoUse "TOAST table" in place of the vague, not-used-elsewhere phrase
commit | commitdiff | tree
Tom Lane [2010年5月13日 18:54:18 +0000 (18:54 +0000)]
Use "TOAST table" in place of the vague, not-used-elsewhere phrase
"supplementary storage table".

15 years agoPrevent PL/Tcl from loading the "unknown" module from pltcl_modules unless
commit | commitdiff | tree
Tom Lane [2010年5月13日 18:29:12 +0000 (18:29 +0000)]
Prevent PL/Tcl from loading the "unknown" module from pltcl_modules unless
that is a regular table or view owned by a superuser. This prevents a
trojan horse attack whereby any unprivileged SQL user could create such a
table and insert code into it that would then get executed in other users'
sessions whenever they call pltcl functions.

Worse yet, because the code was automatically loaded into both the "normal"
and "safe" interpreters at first use, the attacker could execute unrestricted
Tcl code in the "normal" interpreter without there being any pltclu functions
anywhere, or indeed anyone else using pltcl at all: installing pltcl is
sufficient to open the hole. Change the initialization logic so that the
"unknown" code is only loaded into an interpreter when the interpreter is
first really used. (That doesn't add any additional security in this
particular context, but it seems a prudent change, and anyway the former
behavior violated the principle of least astonishment.)

Security: CVE-2010-1170

15 years agoAbandon the use of Perl's Safe.pm to enforce restrictions in plperl, as it is
commit | commitdiff | tree
Andrew Dunstan [2010年5月13日 16:39:43 +0000 (16:39 +0000)]
Abandon the use of Perl's Safe.pm to enforce restrictions in plperl, as it is
fundamentally insecure. Instead apply an opmask to the whole interpreter that
imposes restrictions on unsafe operations. These restrictions are much harder
to subvert than is Safe.pm, since there is no container to be broken out of.
Backported to release 7.4.

In releases 7.4, 8.0 and 8.1 this also includes the necessary backporting of
the two interpreters model for plperl and plperlu adopted in release 8.2.

In versions 8.0 and up, the use of Perl's POSIX module to undo its locale
mangling on Windows has become insecure with these changes, so it is
replaced by our own routine, which is also faster.

Nice side effects of the changes include that it is now possible to use perl's
"strict" pragma in a natural way in plperl, and that perl's $a and
$b variables now work as expected in sort routines, and that function
compilation is significantly faster.

Tim Bunce and Andrew Dunstan, with reviews from Alex Hunsaker and
Alexey Klyukin.

Security: CVE-2010-1169

15 years agoAssorted fixes to make pg_upgrade build on MSVC.
commit | commitdiff | tree
Magnus Hagander [2010年5月13日 15:58:15 +0000 (15:58 +0000)]
Assorted fixes to make pg_upgrade build on MSVC.

* There is no chmod() on Windows.
* Must always use the 3-parameter version of open()
* There is no dynloader.h - but it also appears unnecessary on all platforms
* Don't include shlobj.h because it causes compile errors, and from what I can
see it's not actually used. This may need to be added back for mingw
and/or cygwin in the worst case.

15 years agoTranslation update
commit | commitdiff | tree
Peter Eisentraut [2010年5月13日 15:56:43 +0000 (15:56 +0000)]
Translation update

15 years agoProperly support multi-line entires (such as OBJS=) when building
commit | commitdiff | tree
Magnus Hagander [2010年5月13日 15:56:22 +0000 (15:56 +0000)]
Properly support multi-line entires (such as OBJS=) when building
PROGRAM, not just MODULE, in contrib.

15 years agoComment out EnterpriseDB Advanced Server mention in SGML docs.
commit | commitdiff | tree
Bruce Momjian [2010年5月13日 15:03:24 +0000 (15:03 +0000)]
Comment out EnterpriseDB Advanced Server mention in SGML docs.

15 years agoAvoid error from mkdir if no languages are to be installed
commit | commitdiff | tree
Peter Eisentraut [2010年5月13日 14:35:28 +0000 (14:35 +0000)]
Avoid error from mkdir if no languages are to be installed

mkinstalldirs used to handle no arguments, but mkdir doesn't.

Also remove the .SILENT setting, that was previously removed from
Makefile.global as well.

15 years agoFix some spelling errors.
commit | commitdiff | tree
Magnus Hagander [2010年5月13日 14:16:41 +0000 (14:16 +0000)]
Fix some spelling errors.

Thom Brown

15 years agoAdd missing library and include support for pg_upgrade to MSVC build system.
commit | commitdiff | tree
Andrew Dunstan [2010年5月13日 13:40:03 +0000 (13:40 +0000)]
Add missing library and include support for pg_upgrade to MSVC build system.

15 years agoFix HISTORY.html build using </link>, not </>.
commit | commitdiff | tree
Bruce Momjian [2010年5月13日 12:47:50 +0000 (12:47 +0000)]
Fix HISTORY.html build using </link>, not </>.

15 years agoFix vpath installation from distribution tarball (bug #5447)
commit | commitdiff | tree
Peter Eisentraut [2010年5月13日 11:49:48 +0000 (11:49 +0000)]
Fix vpath installation from distribution tarball (bug #5447)

15 years agoEnsure that top level aborts call XLogSetAsyncCommit(). Not doing
commit | commitdiff | tree
Simon Riggs [2010年5月13日 11:39:30 +0000 (11:39 +0000)]
Ensure that top level aborts call XLogSetAsyncCommit(). Not doing
so simply leads to data waiting in wal_buffers which then causes
later commits to potentially do emergency writes and for all forms
of replication to be potentially delayed without need or benefit.
Issue pointed out exactly by Fujii Masao, following bug report
by Robert Haas on a separate though related topic.

15 years agoCleanup initialization of Hot Standby. Clarify working with reanalysis
commit | commitdiff | tree
Simon Riggs [2010年5月13日 11:15:38 +0000 (11:15 +0000)]
Cleanup initialization of Hot Standby. Clarify working with reanalysis
of requirements and documentation on LogStandbySnapshot(). Fixes
two minor bugs reported by Tom Lane that would lead to an incorrect
snapshot after transaction wraparound. Also fix two other problems
discovered that would give incorrect snapshots in certain cases.
ProcArrayApplyRecoveryInfo() substantially rewritten. Some minor
refactoring of xact_redo_apply() and ExpireTreeKnownAssignedTransactionIds().

15 years agoFix wrong subdir. Per buildfarm.
commit | commitdiff | tree
Tom Lane [2010年5月13日 05:17:16 +0000 (05:17 +0000)]
Fix wrong subdir. Per buildfarm.

15 years agoUpdate release notes to current.
commit | commitdiff | tree
Bruce Momjian [2010年5月13日 01:57:01 +0000 (01:57 +0000)]
Update release notes to current.

15 years agoMove pg_upgrade shared library out into its own /contrib directory
commit | commitdiff | tree
Bruce Momjian [2010年5月13日 01:03:01 +0000 (01:03 +0000)]
Move pg_upgrade shared library out into its own /contrib directory
(pg_upgrade_support).

15 years agoUpdate comment about why postmaster doesn't get an icon.
commit | commitdiff | tree
Bruce Momjian [2010年5月12日 23:48:36 +0000 (23:48 +0000)]
Update comment about why postmaster doesn't get an icon.

15 years agoPreliminary release notes for releases 8.4.4, 8.3.11, 8.2.17, 8.1.21, 8.0.25,
commit | commitdiff | tree
Tom Lane [2010年5月12日 23:20:49 +0000 (23:20 +0000)]
Preliminary release notes for releases 8.4.4, 8.3.11, 8.2.17, 8.1.21, 8.0.25,
7.4.29.

15 years agoRemove Makefile PGFILEDESC tag that the postmaster is an executable.
commit | commitdiff | tree
Bruce Momjian [2010年5月12日 21:42:21 +0000 (21:42 +0000)]
Remove Makefile PGFILEDESC tag that the postmaster is an executable.

15 years agoGive most recovery conflict errors a retryable error code. From recent
commit | commitdiff | tree
Simon Riggs [2010年5月12日 19:45:02 +0000 (19:45 +0000)]
Give most recovery conflict errors a retryable error code. From recent
requests and discussions with Yeb Havinga and Kevin Grittner.

15 years agoHook pg_upgrade into the contrib makefile structure so it gets built
commit | commitdiff | tree
Tom Lane [2010年5月12日 16:50:58 +0000 (16:50 +0000)]
Hook pg_upgrade into the contrib makefile structure so it gets built
on the buildfarm.

15 years agoUpdate config.guess and config.sub
commit | commitdiff | tree
Peter Eisentraut [2010年5月12日 16:50:57 +0000 (16:50 +0000)]
Update config.guess and config.sub

15 years agoClean up unnecessary unportability and compiler warnings by removing the
commit | commitdiff | tree
Tom Lane [2010年5月12日 16:50:00 +0000 (16:50 +0000)]
Clean up unnecessary unportability and compiler warnings by removing the
cmp parameter for pg_scandir(). The code failed to support this anyway
for Sun/Windows, so pretending we could accept a parameter other than
NULL was just asking for trouble.

15 years agoMove pg_upgrade TODO to TODO wiki.
commit | commitdiff | tree
Bruce Momjian [2010年5月12日 13:59:21 +0000 (13:59 +0000)]
Move pg_upgrade TODO to TODO wiki.

15 years agoAdd PGFILEDESC description to Makefiles for all /contrib executables.
commit | commitdiff | tree
Bruce Momjian [2010年5月12日 11:33:10 +0000 (11:33 +0000)]
Add PGFILEDESC description to Makefiles for all /contrib executables.

Add PGAPPICON to all executable makefiles.

15 years agoSmall formatting adjustment.
commit | commitdiff | tree
Bruce Momjian [2010年5月12日 11:07:24 +0000 (11:07 +0000)]
Small formatting adjustment.

15 years agoAdd pg_upgrade IMPLEMENTATION file to CVS.
commit | commitdiff | tree
Bruce Momjian [2010年5月12日 02:24:43 +0000 (02:24 +0000)]
Add pg_upgrade IMPLEMENTATION file to CVS.

15 years agoAdd TODO file to CVS.
commit | commitdiff | tree
Bruce Momjian [2010年5月12日 02:23:56 +0000 (02:23 +0000)]
Add TODO file to CVS.

15 years agoAdd pg_upgrade to /contrib; will be in 9.0 beta2.
commit | commitdiff | tree
Bruce Momjian [2010年5月12日 02:19:11 +0000 (02:19 +0000)]
Add pg_upgrade to /contrib; will be in 9.0 beta2.

Add documentation.

Supports migration from PG 8.3 and 8.4.

15 years agoUpdate time zone data files to tzdata release 2010j: DST law changes in
commit | commitdiff | tree
Tom Lane [2010年5月11日 23:01:27 +0000 (23:01 +0000)]
Update time zone data files to tzdata release 2010j: DST law changes in
Argentina, Australian Antarctic, Bangladesh, Mexico, Morocco, Pakistan,
Palestine, Russia, Syria, Tunisia. Historical corrections for Taiwan.

15 years agoAdd PKST to the default set of timezone abbreviations.
commit | commitdiff | tree
Tom Lane [2010年5月11日 22:36:52 +0000 (22:36 +0000)]
Add PKST to the default set of timezone abbreviations.
Per discussion, if we have PKT in there then PKST should be too.
Also, fix mistaken claim that these abbrevs are not known to zic.

15 years agoChange typedef for rb_appendator to avoid conflict with C++ reserved words.
commit | commitdiff | tree
Robert Haas [2010年5月11日 18:14:01 +0000 (18:14 +0000)]
Change typedef for rb_appendator to avoid conflict with C++ reserved words.

Fixes a complaint from src/tools/pginclude/cpluspluscheck reported by
Peter Eisentraut.

15 years agoCause the archiver process to adopt new postgresql.conf settings (particularly
commit | commitdiff | tree
Tom Lane [2010年5月11日 16:42:28 +0000 (16:42 +0000)]
Cause the archiver process to adopt new postgresql.conf settings (particularly
archive_command) as soon as possible, namely just before issuing a new call
of archive_command, even when there is a backlog of files to be archived.
The original coding would only absorb new settings after clearing the backlog
and returning to the outer loop. Per discussion.

Back-patch to 8.3. The logic in prior versions is a bit different and it
doesn't seem worth taking any risks of breaking it.

15 years agoMention related ALTER TABLE variants in documentation for CLUSTER.
commit | commitdiff | tree
Robert Haas [2010年5月11日 16:07:42 +0000 (16:07 +0000)]
Mention related ALTER TABLE variants in documentation for CLUSTER.

As suggested by Andy Lester.

15 years agoFix incorrect patch that removed permission checks on inheritance child
commit | commitdiff | tree
Tom Lane [2010年5月11日 15:31:37 +0000 (15:31 +0000)]
Fix incorrect patch that removed permission checks on inheritance child
tables --- the parent table no longer got checked, either. Per bug #5458
from Takahiro Itagaki.

15 years agoSet per-function GUC settings during validating the function.
commit | commitdiff | tree
Itagaki Takahiro [2010年5月11日 04:52:28 +0000 (04:52 +0000)]
Set per-function GUC settings during validating the function.
Now validators work properly even when the settings contain
parameters that affect behavior of the function, like search_path.

Reported by Erwin Brandstetter.

15 years agoWhen adding a "target IS NOT NULL" indexqual to the plan for an index-optimized
commit | commitdiff | tree
Tom Lane [2010年5月10日 16:25:46 +0000 (16:25 +0000)]
When adding a "target IS NOT NULL" indexqual to the plan for an index-optimized
MIN or MAX, we must take care to insert the added qual in a legal place among
the existing indexquals, if any. The btree index AM requires the quals to
appear in index-column order. We didn't have to worry about this before
because "target IS NOT NULL" was just treated as a plain scan filter condition;
but as of 9.0 it can be an index qual and then it has to follow the rule.
Per report from Ian Barwick.

15 years agoSuppress signed-vs-unsigned-char warning.
commit | commitdiff | tree
Tom Lane [Sun, 9 May 2010 18:17:47 +0000 (18:17 +0000)]
Suppress signed-vs-unsigned-char warning.

15 years agoFix missing static declaration for XLogRead().
commit | commitdiff | tree
Tom Lane [Sun, 9 May 2010 18:11:55 +0000 (18:11 +0000)]
Fix missing static declaration for XLogRead().

15 years agoFix typo: PGTYPES_NUM_OVERFLOW should be PGTYPES_NUM_UNDERFLOW.
commit | commitdiff | tree
Tom Lane [Sun, 9 May 2010 16:30:31 +0000 (16:30 +0000)]
Fix typo: PGTYPES_NUM_OVERFLOW should be PGTYPES_NUM_UNDERFLOW.
Noted by KOIZUMI Satoru.

15 years agoAdjust comments about avoiding use of printf's %.*s.
commit | commitdiff | tree
Tom Lane [Sun, 9 May 2010 02:16:00 +0000 (02:16 +0000)]
Adjust comments about avoiding use of printf's %.*s.
My initial impression that glibc was measuring the precision in characters
(which is what the Linux man page says it does) was incorrect. It does take
the precision to be in bytes, but it also tries to truncate the string at a
character boundary. The bottom line remains the same: it will mess up
if the string is not in the encoding it expects, so we need to avoid %.*s
anytime there's a significant risk of that. Previous code changes are still
good, but adjust the comments to reflect this knowledge. Per research by
Hernan Gonzalez.

15 years agoWork around a subtle portability problem in use of printf %s format.
commit | commitdiff | tree
Tom Lane [Sat, 8 May 2010 16:39:53 +0000 (16:39 +0000)]
Work around a subtle portability problem in use of printf %s format.
Depending on which spec you read, field widths and precisions in %s may be
counted either in bytes or characters. Our code was assuming bytes, which
is wrong at least for glibc's implementation, and in any case libc might
have a different idea of the prevailing encoding than we do. Hence, for
portable results we must avoid using anything more complex than just "%s"
unless the string to be printed is known to be all-ASCII.

This patch fixes the cases I could find, including the psql formatting
failure reported by Hernan Gonzalez. In HEAD only, I also added comments
to some places where it appears safe to continue using "%.*s".

15 years agoECPG connect routine only checked for NULL to find empty parameters, but user and...
commit | commitdiff | tree
Michael Meskes [Fri, 7 May 2010 19:35:03 +0000 (19:35 +0000)]
ECPG connect routine only checked for NULL to find empty parameters, but user and password can also be "".

15 years agoOn Linux, use --enable-new-dtags when specifying -rpath to linker.
commit | commitdiff | tree
Tom Lane [Thu, 6 May 2010 19:28:25 +0000 (19:28 +0000)]
On Linux, use --enable-new-dtags when specifying -rpath to linker.
This should allow LD_LIBRARY_PATH to work as desired. Per trouble
report from Andy Colson.

15 years agoCode page for EUC-KR is surely 51949.
commit | commitdiff | tree
Itagaki Takahiro [Thu, 6 May 2010 02:12:38 +0000 (02:12 +0000)]
Code page for EUC-KR is surely 51949.

next
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /