Andres Freund [Sun, 8 Mar 2015 16:34:13 +0000 (17:34 +0100)]
deparse: Deparse storage options for constraints.
Andres Freund [Sat, 17 Jan 2015 22:40:36 +0000 (23:40 +0100)]
deparse: Fix likely typo in "deparse: Add support for typmod for CREATE DOMAIN."
Andres Freund [Sat, 17 Jan 2015 22:21:50 +0000 (23:21 +0100)]
deparse: Check if security label is on a event trigger supported object.
Otherwise there'll be errors during deparsing.
Petr Jelinek [Sat, 20 Dec 2014 08:11:28 +0000 (09:11 +0100)]
deparse: Add support for stringifying more object types.
Petr Jelinek [Sat, 20 Dec 2014 08:08:48 +0000 (09:08 +0100)]
deparse: Add support for typmod for CREATE DOMAIN.
Petr Jelinek [Sat, 20 Dec 2014 08:08:09 +0000 (09:08 +0100)]
deparse: Fix CREATE CONVERSION.
Petr Jelinek [Sat, 20 Dec 2014 08:06:59 +0000 (09:06 +0100)]
deparse: Fix order of WITH and ON COMMIT for CREATE TABLE statement.
Petr Jelinek [Sat, 20 Dec 2014 07:56:54 +0000 (08:56 +0100)]
deparse: Handle default security provider.
Andres Freund [Wed, 26 Nov 2014 01:32:05 +0000 (02:32 +0100)]
deparse: Fix and actually use support for ObjTypeInteger in SET STATISTICS.
Petr Jelinek [Tue, 25 Nov 2014 15:08:11 +0000 (16:08 +0100)]
deparse: Always initialize objsubid for RenameStmt.
Petr Jelinek [Tue, 25 Nov 2014 14:38:38 +0000 (15:38 +0100)]
deparse: Support for ALTER TABLE ONLY
Andres Freund [Tue, 25 Nov 2014 13:02:26 +0000 (14:02 +0100)]
deparse: Add support for ALTER TABLE ... ALTER COLUMN ... SET STATISTICS.
Andres Freund [Tue, 25 Nov 2014 13:01:01 +0000 (14:01 +0100)]
deparse: Add ObjTypeInteger to deparse infrastructure
Petr Jelinek [Mon, 24 Nov 2014 17:09:25 +0000 (18:09 +0100)]
deparse: Fix operator quoting
Operators should follow same quoting rules as function when used as
parameters.
Alvaro Herrera [Thu, 25 Sep 2014 19:34:50 +0000 (16:34 -0300)]
support ALTER TYPE / RENAME ATTRIBUTE
Abhijit Menon-Sen [Thu, 6 Nov 2014 12:11:57 +0000 (17:41 +0530)]
deparse: Don't generate 'ALTER COLUMN' when renameType == OBJ_COLUMN
We should use relationType, not renameType, to decide what the ALTER
applies to. This applies to both OBJECT_COLUMN and OBJECT_ATTRIBUTE.
Based on a support ticket with analysis from Petr Jelinek.
Andres Freund [Sun, 2 Nov 2014 13:52:13 +0000 (14:52 +0100)]
deparse: fix SECURITY LABEL ... IS NULL
Andres Freund [Sun, 19 Oct 2014 23:49:29 +0000 (01:49 +0200)]
deparse: Add support for SECURITY LABEL
Alvaro Herrera [Fri, 10 Oct 2014 19:49:18 +0000 (16:49 -0300)]
deparse: fix COMMENT ON ... IS NULL
Alvaro Herrera [Fri, 26 Sep 2014 20:02:08 +0000 (17:02 -0300)]
deparse/core: have GRANT only consider local objects
Alvaro Herrera [Mon, 8 Sep 2014 20:55:07 +0000 (17:55 -0300)]
deparse: support ALTER TABLE ALL IN TABLESPACE
This version emits one ALTER TABLE command for each table affected by
the ALL IN TABLESPACE variant. We might revisit this later.
Petr Jelinek [Tue, 16 Sep 2014 13:29:59 +0000 (15:29 +0200)]
deparse: fix CREATE OR REPLACE VIEW
Alvaro Herrera [Thu, 21 Aug 2014 17:37:13 +0000 (13:37 -0400)]
deparse: Fix deparsing of typmod = 0 type specifications
There was a discrepancy with format_type_internal in
format_type_detailed by ignoring the case that the typmod is exactly
zero. Per bug #37939.
Alvaro Herrera [Wed, 20 Aug 2014 15:42:31 +0000 (11:42 -0400)]
deparse: Support COMMENT ON, per #37933
Petr Jelinek [Wed, 20 Aug 2014 13:16:53 +0000 (15:16 +0200)]
deparse: handle all valid json escape sequences in dequote_jsonval
Petr Jelinek [Fri, 8 Aug 2014 12:55:47 +0000 (14:55 +0200)]
deparse: Support ALTER FUNCTION
Petr Jelinek [Wed, 6 Aug 2014 09:16:11 +0000 (11:16 +0200)]
deparse: fix ALTER <object> RENAME TO for several object types
Petr Jelinek [Mon, 28 Jul 2014 22:16:11 +0000 (00:16 +0200)]
deparse: fix deparsing of ALTER SEQUENCE ... INCREMENT BY
Alvaro Herrera [Fri, 18 Jul 2014 04:30:57 +0000 (00:30 -0400)]
deparse: Fix in_extension marking for extensions
Per #37819
Craig Ringer [Wed, 16 Jul 2014 06:51:23 +0000 (14:51 +0800)]
deparse: Fix incorrect use of %lu in deparse for int64
This caused tests to fail on 32-bit platforms, and would've also broken when
reaching the max long integer threshold.
Petr Jelinek [Sun, 6 Jul 2014 12:27:52 +0000 (14:27 +0200)]
deparse: fix WHEN clause in CREATE TRIGGER
Alvaro Herrera [Thu, 12 Jun 2014 22:34:53 +0000 (18:34 -0400)]
deparse: support GRANT/REVOKE
Abhijit Menon-Sen [Thu, 8 May 2014 10:05:58 +0000 (15:35 +0530)]
deparse: Support ALTER EXTENSION / UPDATE TO
Alvaro Herrera [Tue, 6 May 2014 21:22:13 +0000 (17:22 -0400)]
deparse: support ALTER THING OWNER TO
Abhijit Menon-Sen [Tue, 6 May 2014 08:16:01 +0000 (13:46 +0530)]
deparse: Support CREATE AGGREGATE
Abhijit Menon-Sen [Tue, 6 May 2014 06:23:45 +0000 (11:53 +0530)]
deparse: Initial support for CREATE TEXT SEARCH CONFIGURATION
Since there's no way to create token-dict mappings with this CREATE
command, we search for them and refuse to deparse the configuration
if they exist.
Abhijit Menon-Sen [Mon, 5 May 2014 10:50:40 +0000 (16:20 +0530)]
deparse: Support CREATE TYPE via DefineStmt
Abhijit Menon-Sen [Mon, 5 May 2014 09:14:18 +0000 (14:44 +0530)]
deparse: Support CREATE TEXT SEARCH DICTIONARY via DefineStmt
Abhijit Menon-Sen [Mon, 5 May 2014 08:51:42 +0000 (14:21 +0530)]
deparse: Support CREATE TEXT SEARCH PARSER via DefineStmt
Abhijit Menon-Sen [Mon, 5 May 2014 08:42:18 +0000 (14:12 +0530)]
deparse: Support CREATE TEXT SEARCH TEMPLATE via DefineStmt
Abhijit Menon-Sen [Mon, 5 May 2014 07:52:58 +0000 (13:22 +0530)]
deparse: Support CREATE COLLATION via DefineStmt
Abhijit Menon-Sen [Mon, 5 May 2014 06:50:58 +0000 (12:20 +0530)]
deparse: Support CREATE OPERATOR via DefineStmt
Abhijit Menon-Sen [Wed, 30 Apr 2014 12:00:07 +0000 (17:30 +0530)]
deparse: Support CREATE CONVERSION
Abhijit Menon-Sen [Wed, 30 Apr 2014 07:07:41 +0000 (12:37 +0530)]
deparse: Support CREATE OPERATOR FAMILY
Alvaro Herrera [Fri, 25 Apr 2014 19:32:20 +0000 (16:32 -0300)]
deparse: initial support for ALTER TABLE
Alvaro Herrera [Tue, 15 Apr 2014 19:45:03 +0000 (16:45 -0300)]
deparse: deparse CREATE FUNCTION
Alvaro Herrera [Tue, 15 Apr 2014 19:44:23 +0000 (16:44 -0300)]
deparse/core: enable deparse of function defaults expr
Alvaro Herrera [Fri, 25 Apr 2014 20:54:19 +0000 (17:54 -0300)]
deparse: support CREATE DOMAIN
Alvaro Herrera [Fri, 25 Apr 2014 19:43:53 +0000 (16:43 -0300)]
deparse: add support for ALTER THING RENAME
It supports everything but functions, aggregates, operator classes and
operator families.
Alvaro Herrera [Fri, 21 Mar 2014 19:33:14 +0000 (16:33 -0300)]
deparse: support ALTER TYPE / ADD VALUE (for enums)
Alvaro Herrera [Wed, 26 Feb 2014 20:26:55 +0000 (17:26 -0300)]
deparse: add support for CREATE RULE
Alvaro Herrera [Fri, 21 Feb 2014 21:11:35 +0000 (18:11 -0300)]
deparse: Add support for CREATE EXTENSION
Alvaro Herrera [Fri, 14 Feb 2014 22:04:08 +0000 (19:04 -0300)]
deparse: support CREATE TYPE AS RANGE
Alvaro Herrera [Thu, 12 Jun 2014 20:52:35 +0000 (16:52 -0400)]
deparse: Initial support for JSON command deparsing
Andres Freund [Thu, 1 May 2014 17:10:57 +0000 (19:10 +0200)]
deparse/core: PGDLLIMPORT creating_extension
Alvaro Herrera [Thu, 12 Jun 2014 20:44:47 +0000 (16:44 -0400)]
deparse/core: add get_sequence_values()
Alvaro Herrera [Thu, 12 Jun 2014 20:43:07 +0000 (16:43 -0400)]
deparse/core: add format_type_detailed()
Alvaro Herrera [Fri, 9 May 2014 22:32:23 +0000 (18:32 -0400)]
deparse/core: event triggers support GRANT/REVOKE
Alvaro Herrera [Fri, 25 Apr 2014 20:15:49 +0000 (17:15 -0300)]
deparse/core: have ALTER TABLE return OIDs and col# of affected objs
Alvaro Herrera [Fri, 2 May 2014 20:51:31 +0000 (16:51 -0400)]
deparse/core: qualify "=" operator in SPI queries
Deparsing of CREATE VIEW was failing without this, because we remove
pg_catalog from the search path.
Alvaro Herrera [Mon, 5 May 2014 21:49:54 +0000 (17:49 -0400)]
deparse/core: return the base type OID, not the array's
DefineType should return the OID of the base type just created, not the
subsidiary array's.
Alvaro Herrera [Tue, 11 Feb 2014 18:58:56 +0000 (15:58 -0300)]
deparse/core: split builtins.h to new ruleutils.h
This contains many prototypes for functions in ruleutils.c that are not
exposed to the SQL level.
Alvaro Herrera [Thu, 7 Nov 2013 12:46:11 +0000 (09:46 -0300)]
deparse/core: return OID of matview in REFRESH
For future consumption by event triggers
Alvaro Herrera [Mon, 7 Jan 2013 15:35:48 +0000 (12:35 -0300)]
deparse/core: return OID in CREATE TABLE AS
Peter Eisentraut [Fri, 5 Sep 2014 05:20:33 +0000 (01:20 -0400)]
Assorted message fixes and improvements
Fujii Masao [Fri, 5 Sep 2014 02:40:08 +0000 (11:40 +0900)]
Add tab-completion for reloptions like user_catalog_table.
Back-patch to 9.4 where user_catalog_table was added.
Review by Michael Paquier
Peter Eisentraut [Thu, 4 Sep 2014 18:11:23 +0000 (14:11 -0400)]
doc: Remove dead link
The link to the NIST web page about DES standards leads to nowhere, and
according to archive.org has been forwarded to an unrelated page for
many years. Therefore, just remove that link. More up to date
information can be found via Wikipedia, for example.
Fujii Masao [Thu, 4 Sep 2014 17:17:57 +0000 (02:17 +0900)]
Fix segmentation fault that an empty prepared statement could cause.
Back-patch to all supported branches.
Per bug #11335 from Haruka Takatsuka
Fujii Masao [Thu, 4 Sep 2014 04:48:09 +0000 (13:48 +0900)]
docs: Improve documentation of \pset without arguments.
The syntax summary previously failed to clarify that the first
argument is also optional. The textual description did mention it,
but all the way at the bottom. It fits better with the command
overview, so move it there, and fix the summary also.
Back-patch to 9.4 where \pset without arguments was supported.
Dilip Kumar, reviewed by Fabien Coelho
Bruce Momjian [Wed, 3 Sep 2014 21:22:20 +0000 (17:22 -0400)]
Update URL reference material in /contrib/isn docs
Report by Peter Eisentraut
Bruce Momjian [Wed, 3 Sep 2014 18:34:46 +0000 (14:34 -0400)]
Document use of partial indexes for partial unique constraints
Report by Tomáš Greif
Backpatch through 9.4
Heikki Linnakangas [Tue, 2 Sep 2014 11:22:42 +0000 (14:22 +0300)]
Silence warning on new versions of clang.
Andres Freund
Andres Freund [Mon, 1 Sep 2014 11:42:43 +0000 (13:42 +0200)]
Add skip-empty-xacts option to test_decoding for use in the regression tests.
The regression tests for contrib/test_decoding regularly failed on
postgres instances that were very slow. Either because the hardware
itself was slow or because very expensive debugging options like
CLOBBER_CACHE_ALWAYS were used.
The reason they failed was just that some additional transactions were
decoded. Analyze and vacuum, triggered by autovac.
To fix just add a option to test_decoding to only display transactions
in which a change was actually displayed. That's not pretty because it
removes information from the tests; but better than constantly failing
tests in very likely harmless ways.
Backpatch to 9.4 where logical decoding was introduced.
Discussion:
20140629142511.GA26930@awork2.anarazel.de
Andres Freund [Sun, 31 Aug 2014 22:17:18 +0000 (00:17 +0200)]
Declare lwlock.c's LWLockAcquireCommon() as a static inline.
68a2e52bbaf98f136 has introduced LWLockAcquireCommon() containing the
previous contents of LWLockAcquire() plus added functionality. The
latter then calls it, just like LWLockAcquireWithVar(). Because the
majority of callers don't need the added functionality, declare the
common code as inline. The compiler then can optimize away the unused
code. Doing so is also useful when looking at profiles, to
differentiate the users.
Backpatch to 9.4, the first branch to contain LWLockAcquireCommon().
Kevin Grittner [Sat, 30 Aug 2014 16:01:47 +0000 (11:01 -0500)]
doc: Various typo/grammar fixes
Errors detected using Topy (https://github.com/intgr/topy), all
changes verified by hand and some manual tweaks added.
Marti Raudsepp
Individual changes backpatched, where applicable, as far as 9.0.
Bruce Momjian [Fri, 29 Aug 2014 13:05:35 +0000 (09:05 -0400)]
pg_is_xlog_replay_paused(): remove super-user-only restriction
Also update docs to mention which function are super-user-only.
Report by sys-milan@statpro.com
Backpatch through 9.4
Heikki Linnakangas [Fri, 29 Aug 2014 11:19:34 +0000 (14:19 +0300)]
Fix bug in compressed GIN data leaf page splitting code.
The list of posting lists it's dealing with can contain placeholders for
deleted posting lists. The placeholders are kept around so that they can
be WAL-logged, but we must be careful to not try to access them.
This fixes bug #11280, reported by Mårten Svantesson. Backpatch to 9.4,
where the compressed data leaf page code was added.
Peter Eisentraut [Fri, 29 Aug 2014 04:01:34 +0000 (00:01 -0400)]
Assorted message improvements
Peter Eisentraut [Fri, 29 Aug 2014 03:59:03 +0000 (23:59 -0400)]
doc: Revert ALTER TABLESPACE summary line
It was changed when ALTER TABLESPACE / MOVE was added but then not
updated when that was moved back out.
Tom Lane [Thu, 28 Aug 2014 22:21:11 +0000 (18:21 -0400)]
Fix citext upgrade script for disallowance of oidvector element assignment.
In commit
45e02e3232ac7cc5ffe36f7986159b5e0b1f6fdc, we intentionally
disallowed updates on individual elements of oidvector columns. While that
still seems like a sane idea in the abstract, we (I) forgot that citext's
"upgrade from unpackaged" script did in fact perform exactly such updates,
in order to fix the problem that citext indexes should have a collation
but would not in databases dumped or upgraded from pre-9.1 installations.
Even if we wanted to add casts to allow such updates, there's no practical
way to do so in the back branches, so the only real alternative is to make
citext's kluge even klugier. In this patch, I cast the oidvector to text,
fix its contents with regexp_replace, and cast back to oidvector. (Ugh!)
Since the aforementioned commit went into all active branches, we have to
fix this in all branches that contain the now-broken update script.
Per report from Eric Malm.
Alvaro Herrera [Wed, 27 Aug 2014 23:15:18 +0000 (19:15 -0400)]
Fix FOR UPDATE NOWAIT on updated tuple chains
If SELECT FOR UPDATE NOWAIT tries to lock a tuple that is concurrently
being updated, it might fail to honor its NOWAIT specification and block
instead of raising an error.
Fix by adding a no-wait flag to EvalPlanQualFetch which it can pass down
to heap_lock_tuple; also use it in EvalPlanQualFetch itself to avoid
blocking while waiting for a concurrent transaction.
Authors: Craig Ringer and Thomas Munro, tweaked by Álvaro
http://www.postgresql.org/message-id/
51FB6703.
9090801@2ndquadrant.com
Per Thomas Munro in the course of his SKIP LOCKED feature submission,
who also provided one of the isolation test specs.
Backpatch to 9.4, because that's as far back as it applies without
conflicts (although the bug goes all the way back). To that branch also
backpatch Thomas Munro's new NOWAIT test cases, committed in master by
Heikki as commit
9ee16b49f0aac819bd4823d9b94485ef608b34e8 .
Stephen Frost [Wed, 27 Aug 2014 03:08:41 +0000 (23:08 -0400)]
Fix Var handling for security barrier views
In some cases, not all Vars were being correctly marked as having been
modified for updatable security barrier views, which resulted in invalid
plans (eg: when security barrier views were created over top of
inheiritance structures).
In passing, be sure to update both varattno and varonattno, as _equalVar
won't consider the Vars identical otherwise. This isn't known to cause
any issues with updatable security barrier views, but was noticed as
missing while working on RLS and makes sense to get fixed.
Back-patch to 9.4 where updatable security barrier views were
introduced.
Kevin Grittner [Tue, 26 Aug 2014 15:00:42 +0000 (10:00 -0500)]
Fix superuser concurrent refresh of matview owned by another.
Use SECURITY_LOCAL_USERID_CHANGE while building temporary tables;
only escalate to SECURITY_RESTRICTED_OPERATION while potentially
running user-supplied code. The more secure mode was preventing
temp table creation. Add regression tests to cover this problem.
This fixes Bug #11208 reported by Bruno Emanuel de Andrade Silva.
Backpatch to 9.4, where the bug was introduced.
Bruce Momjian [Mon, 25 Aug 2014 19:34:50 +0000 (15:34 -0400)]
upgrade docs: highlight pg_upgrade, warn about globals preservation
Also, remove OID preservation mention, mention non-text dump formats
Backpatch through 9.4
Alvaro Herrera [Mon, 25 Aug 2014 19:33:19 +0000 (15:33 -0400)]
Revert XactLockTableWait context setup in conditional multixact wait
There's no point in setting up a context error callback when doing
conditional lock acquisition, because we never actually wait and so the
able wouldn't be able to see it.
Backpatch to 9.4, where this was added.
Andres Freund [Mon, 25 Aug 2014 16:30:28 +0000 (18:30 +0200)]
Fix typos in some error messages thrown by extension scripts when fed to psql.
Some of the many error messages introduced in
458857cc missed 'FROM
unpackaged'. Also
e016b724 and
45ffeb7e forgot to quote extension
version numbers.
Backpatch to 9.1, just like
458857cc which introduced the messages. Do
so because the error messages thrown when the wrong command is copy &
pasted aren't easy to understand.
Heikki Linnakangas [Mon, 25 Aug 2014 16:13:24 +0000 (19:13 +0300)]
Don't track DEALLOCATE in pg_stat_statements.
We also don't track PREPARE, nor do we track planning time in general, so
let's ignore DEALLOCATE as well for consistency.
Backpatch to 9.4, but not further than that. Although it seems unlikely that
anyone is relying on the current behavior, this is a behavioral change.
Fabien Coelho
Peter Eisentraut [Sat, 23 Aug 2014 04:23:34 +0000 (00:23 -0400)]
doc: Improve pg_restore help output
Add a note that some options can be specified multiple times to select
multiple objects to restore. This replaces the somewhat confusing use
of plurals in the option descriptions themselves.
Alvaro Herrera [Fri, 22 Aug 2014 17:55:34 +0000 (13:55 -0400)]
Fix outdated comment
Tom Lane [Fri, 22 Aug 2014 17:18:00 +0000 (13:18 -0400)]
Fix corner-case behaviors in JSON/JSONB field extraction operators.
Cause the path extraction operators to return their lefthand input,
not NULL, if the path array has no elements. This seems more consistent
since the case ought to correspond to applying the simple extraction
operator (->) zero times.
Cause other corner cases in field/element/path extraction to return NULL
rather than failing. This behavior is arguably more useful than throwing
an error, since it allows an expression index using these operators to be
built even when not all values in the column are suitable for the
extraction being indexed. Moreover, we already had multiple
inconsistencies between the path extraction operators and the simple
extraction operators, as well as inconsistencies between the JSON and
JSONB code paths. Adopt a uniform rule of returning NULL rather than
throwing an error when the JSON input does not have a structure that
permits the request to be satisfied.
Back-patch to 9.4. Update the release notes to list this as a behavior
change since 9.3.
Heikki Linnakangas [Fri, 22 Aug 2014 10:45:38 +0000 (13:45 +0300)]
Fix comment in pg_basebackup.
The option is called --tablespace-mapping, not --tablespace.
Amit Kapila
Heikki Linnakangas [Fri, 22 Aug 2014 07:16:26 +0000 (10:16 +0300)]
Change the way pg_basebackup's tablespace mapping is implemented.
Previously, we would first create the symlinks the way they are in the
original system, and at the end replace them with the mapped symlinks.
That never really made much sense, so now we create the symlink pointing
to the correct location to begin with, so that there's no need to fix
them at the end.
The old coding didn't work correctly on Windows, because Windows junction
points look more like directories than files, and ought to be removed with
rmdir rather than unlink. Also, it incorrectly used "%d" rather than "%u"
to print an Oid, but that's gone now.
Report and patch by Amit Kapila, with minor changes by me. Reviewed by
MauMau. Backpatch to 9.4, where the --tablespace feature was added.
Stephen Frost [Thu, 21 Aug 2014 23:06:17 +0000 (19:06 -0400)]
Rework 'MOVE ALL' to 'ALTER .. ALL IN TABLESPACE'
As 'ALTER TABLESPACE .. MOVE ALL' really didn't change the tablespace
but instead changed objects inside tablespaces, it made sense to
rework the syntax and supporting functions to operate under the
'ALTER (TABLE|INDEX|MATERIALIZED VIEW)' syntax and to be in
tablecmds.c.
Pointed out by Alvaro, who also suggested the new syntax.
Back-patch to 9.4.
Tom Lane [Wed, 20 Aug 2014 23:05:09 +0000 (19:05 -0400)]
More regression test cases for json/jsonb extraction operators.
Cover some cases I omitted before, such as null and empty-string
elements in the path array. This exposes another inconsistency:
json_extract_path complains about empty path elements but
jsonb_extract_path does not.
Tom Lane [Wed, 20 Aug 2014 20:48:37 +0000 (16:48 -0400)]
Fix core dump in jsonb #> operator, and add regression test cases.
jsonb's #> operator segfaulted (dereferencing a null pointer) if the RHS
was a zero-length array, as reported in bug #11207 from Justin Van Winkle.
json's #> operator returns NULL in such cases, so for the moment let's
make jsonb act likewise.
Also add a bunch of regression test queries memorializing the -> and #>
operators' behavior for this and other corner cases.
There is a good argument for changing some of these behaviors, as they
are not very consistent with each other, and throwing an error isn't
necessarily a desirable behavior for operators that are likely to be
used in indexes. However, everybody can agree that a core dump is the
Wrong Thing, and we need test cases even if we decide to change their
expected output later.
Fujii Masao [Tue, 19 Aug 2014 09:30:38 +0000 (18:30 +0900)]
Revert "Fix bug in checking of IDENTIFY_SYSTEM result."
This reverts commit
083d29c65b7897f90c70e6dc0a4240a5fa75c8f2.
The commit changed the code so that it causes an errors when
IDENTIFY_SYSTEM returns three columns. But which prevents us
from using the replication-related utilities against the server
with older version. This is not what we want. For that
compatibility, we allow the utilities to receive three columns
as the result of IDENTIFY_SYSTEM eventhough it actually returns
four columns in 9.4 or later.
Pointed out by Andres Freund.
Fujii Masao [Tue, 19 Aug 2014 08:26:07 +0000 (17:26 +0900)]
Fix bug in checking of IDENTIFY_SYSTEM result.
5a991ef8692ed0d170b44958a81a6bd70e90585 added new column into
the result of IDENTIFY_SYSTEM command. But it was not reflected into
several codes checking that result. Specifically though the number of
columns in the result was increased to 4, it was still compared with 3
in some replication codes.
Back-patch to 9.4 where the number of columns in IDENTIFY_SYSTEM
result was increased.
Report from Michael Paquier
Noah Misch [Tue, 19 Aug 2014 03:00:38 +0000 (23:00 -0400)]
Install libpq DLL with $(INSTALL_SHLIB).
Programs need execute permission on a DLL file to load it. MSYS
"install" ignores the mode argument, and our Cygwin build statically
links libpq into programs. That explains the lack of buildfarm trouble.
Back-patch to 9.0 (all supported versions).
Noah Misch [Tue, 19 Aug 2014 02:58:57 +0000 (22:58 -0400)]
Make pg_service.conf sample LDIF more portable.
The aboriginal sample placed connection parameters in
groupOfUniqueNames/uniqueMember. OpenLDAP, at least as early as version
2.4.23, rejects uniqueMember entries that do not conform to the syntax
for a distinguished name. Use device/description, which is free-form.
Back-patch to 9.4 for web site visibility.
Noah Misch [Tue, 19 Aug 2014 02:58:25 +0000 (22:58 -0400)]
Document new trigger-related forms of ALTER FOREIGN TABLE.
Oversight in commit
7cbe57c34dec4860243e6d0f81738cfbb6e5d069.
Back-patch to 9.4, where that commit first appeared. In passing,
release-note the FDW API postcondition change from the same commit.