doc: Fix markup typo
Merge branch 'master' into matview
Remove the check for COPY TO STDIN and COPY FROM STDOUT from ecpg.

The backend grammar treats STDIN and STDOUT completely interchangeable, so
that the above accepted. Arguably that was a mistake the backend grammar,
but it's not ecpg's business to second guess that.
Install headers from the new src/include/common subdirectory.

This got missed in commit 8396447cdbdff0b62914748de2fec04281dc9114.

Andres Freund
Clean up "stopgap" implementation of timestamptz_to_str().

Use correct type for "result", fix bogus strftime argument, don't use
unnecessary static variables, improve comments.

Andres Freund and Tom Lane
Add missing .gitignore file.
Add missing error check in regexp parser.

parseqatom() failed to check for an error return (NULL result) from its
recursive call to parsebranch(), and in consequence could crash with a
null-pointer dereference after an error return.  This bug has been there
since day one, but wasn't noticed before, probably because most error cases
in parsebranch() didn't actually lead to returning NULL.  Add the missing
error check, and also tweak parsebranch() to exit in a less indirect
fashion after a call to parseqatom() fails.

Report by Tomasz Karlik, fix by me.
Merge branch 'master' of /home/kgrittn/pg/postgresql into matview
Add support for piping COPY to/from an external program.

This includes backend "COPY TO/FROM PROGRAM '...'" syntax, and corresponding
psql \copy syntax. Like with reading/writing files, the backend version is
superuser-only, and in the psql version, the program is run in the client.

In the passing, the psql \copy STDIN/STDOUT syntax is subtly changed: if you
the stdin/stdout is quoted, it's now interpreted as a filename. For example,
"\copy foo from 'stdin'" now reads from a file called 'stdin', not from
standard input. Before this, there was no way to specify a filename called
stdin, stdout, pstdin or pstdout.

This creates a new function in pgport, wait_result_to_str(), which can
be used to convert the exit status of a process, as returned by wait(3),
to a human-readable string.

Etsuro Fujita, reviewed by Amit Kapila.
Add standard file header comment to quotes.c.
Cannot use WL_SOCKET_WRITEABLE without WL_SOCKET_READABLE.

In copy-out mode, the frontend should not send any messages until the
backend has finished streaming, by sending a CopyDone message. I'm not sure
if it would be legal for the client to send a new query before receiving the
CopyDone message from the backend, but trying to support that would require
bigger changes to the backend code structure.

Fixes an assertion failure reported by Fujii Masao.
Fix typo in "pg_xlogdump --help" and error message.

Fujii Masao and me.
Fix MSVC build.

The new file in src/port needs to be listed in Mkvcbuild.pm as well.
Remove spurious "the", and add a missing one.

Thom Brown and me.
Flush stderr and stdout in isolation tester.

This is a possibly vain attempt to fix a buffering issue
observed for some MSVC builds.
Merge branch 'master' into matview
Revert "Undo code which allowed TRUNCATE to work on a materialized view."

This reverts commit e4e6d3f6c5e70f40bcd333107efae141de5d8cef.
Revert "Revert "Modify TRUNCATE to support MATERIALIZED VIEW qualification.""

This reverts commit f73139939fd39f687afa9cfc025951dcc95ce376.
Revert "Revert "Redo the TRUNCATE change such that MATERIALIZED need not be parially reserved.""

This reverts commit 90df1960e8d2c3c4ac8864476041ab47908d380a.
Revert "Revert "Fix copy/pasto in TRUNCATE changes.""

This reverts commit 4ba6d99cea9514a59ce5c74629232d6085aa3b62.