- 03 Jun, 2013 5 commits
-
-
Tom Lane authored
"eval q{foo}" used to complain that the error was on line 2 of the eval'd string, because eval internally tacked on "\n;" so that the end of the erroneous command was indeed on line 2. But as of Perl 5.18 it more sanely says that the error is on line 1. To avoid Perl-version-dependent regression test results, use "eval q{foo;}" instead in the two places where this matters. Per buildfarm. Since people might try to use newer Perl versions with older PG releases, back-patch as far as 9.0 where these test cases were added.
-
Heikki Linnakangas authored
This reverts commit a475c603. Erik Rijkers reported back in January 2013 that after the patch, if you do "pg_dump -t myschema.mytable" to dump a single table, and restore that in a database where myschema does not exist, the table is silently created in pg_catalog instead. That is because pg_dump uses "SET search_path=myschema, pg_catalog" to set schema the table is created in. While allow_system_table_mods is not a very elegant solution to this, we can't leave it as it is, so for now, revert it back to the way it was previously.
-
Stephen Frost authored
A few more minor spelling corrections, no functional changes. Thom Brown
-
Heikki Linnakangas authored
Seems cleaner to get the currently-replayed TLI in the same call to GetXLogReplayRecPtr that we get the WAL position. Make it more clear in the comment what the code does when recovery has already ended (RecoveryInProgress() will set ThisTimeLineID in that case). Finally, make resetting ThisTimeLineID afterwards more explicit.
-
Tom Lane authored
This change makes type_func_name_keywords less reserved than they were before, by allowing them for role names, language names, EXPLAIN and COPY options, and SET values for GUCs; which are all places where few if any actual keywords could appear instead, so no new ambiguities are introduced. The main driver for this change is to allow "COPY ... (FORMAT BINARY)" to work without quoting the word "binary". That is an inconsistency that has been complained of repeatedly over the years (at least by Pavel Golub, Kurt Lidl, and Simon Riggs); but we hadn't thought of any non-ugly solution until now. Back-patch to 9.0 where the COPY (FORMAT BINARY) syntax was introduced.
-
- 02 Jun, 2013 2 commits
-
-
Peter Eisentraut authored
-
Peter Eisentraut authored
See 00b0c73f for an explanation.
-
- 01 Jun, 2013 6 commits
-
-
Stephen Frost authored
Fix a few spelling mistakes. Per bug report #8193 from Lajos Veres.
-
Stephen Frost authored
Make slightly better decisions about indentation than what pgindent is capable of. Mostly breaking out long function calls into one line per argument, with a few other minor adjustments. No functional changes- all whitespace. pgindent ran cleanly (didn't change anything) after. Passes all regressions.
-
Peter Eisentraut authored
They no longer match reality with the web site style sheets, and it is difficult to keep the up to date in a CSS world.
-
Noah Misch authored
Dean Rasheed
-
Peter Eisentraut authored
- 31 May, 2013 3 commits
-
-
Peter Eisentraut authored
Ian Lawrence Barwick
-
Peter Eisentraut authored
-
Peter Eisentraut authored
-
- 30 May, 2013 1 commit
-
-
Peter Eisentraut authored
-
- 29 May, 2013 3 commits
-
-
Bruce Momjian authored
This is the first run of the Perl-based pgindent script. Also update pgindent instructions.
-
Robert Haas authored
Tomas Vondra
-
Bruce Momjian authored
-
- 27 May, 2013 1 commit
-
-
Stephen Frost authored
The documentation for ALTER TYPE .. RENAME claimed to support a RESTRICT/CASCADE option at the 'type' level, which wasn't implemented and doesn't make a whole lot of sense to begin with. What is supported, and previously undocumented, is ALTER TYPE .. RENAME ATTRIBUTE .. RESTRICT/CASCADE. I've updated the documentation and back-patched this to 9.1 where it was first introduced.
-
- 24 May, 2013 1 commit
-
-
Heikki Linnakangas authored
We're not installing it anymore. Michael Paquier
-
- 23 May, 2013 2 commits
-
-
Robert Haas authored
Pavan Deolasee
-
Heikki Linnakangas authored
When COPY uses the multi-insert method to insert a batch of tuples into the heap at a time, incorrect line number was printed if something went wrong in inserting the index tuples (primary key failure, for exampl), or processing after row triggers. Fixes bug #8173 reported by Lloyd Albin. Backpatch to 9.2, where the multi- insert code was added.
-
- 21 May, 2013 6 commits
-
-
Bruce Momjian authored
Per suggestion from Tom Lane.
-
Simon Riggs authored
Not necessary for correctness, just to make log_checkpoints output look less singular. Requested by Fujii Masao
-
Simon Riggs authored
checkpointer needs to reset ThisTimeLineID after a restartpoint to allow installing/recycling new WAL files. If recovery has already ended this would leave ThisTimeLineID set incorrectly and so we must reset it otherwise later checkpoints do not have the correct timeline. Bug report by Heikki Linnakangas. Further investigation by Heikki and myself.
-
Bruce Momjian authored
-
Bruce Momjian authored
Patch from Joe Abbate.
-
Peter Eisentraut authored
-
- 20 May, 2013 2 commits
-
-
Heikki Linnakangas authored
In the primary_conninfo line that "pg_basebackup -R" generates, single quotes in parameter values need to be escaped into \\'; the libpq parser requires the quotes to be escaped into \', and recovery.conf parser requires the \ to be escaped into \\. Also, don't quote parameter values unnecessarily, to make the connection string prettier. Most options in a libpq connection string don't need quoting. Reported by Hari Babu, closer analysis by Zoltan Boszormenyi, although I didn't use his patch.
-
Tom Lane authored
Clarify that this option doesn't suppress measurement of the statement's total runtime. Greg Smith
-
- 19 May, 2013 3 commits
-
-
Simon Riggs authored
This simplifies the handling of crashes after fast promotion and various minor cases that can exist in short timing windows around that case. Broad fix to bug reported by Michael Paquier on -hackers, approach prompted by Heikki Linnakangas
-
Simon Riggs authored
-
Simon Riggs authored
Michael Paquier
-
- 18 May, 2013 2 commits
-
-
Heikki Linnakangas authored
euc_* and mule_internal test cases were identical to the ones in src/test/mb. sql_ascii didn't exist elsewhere, but has been broken since 2001, and doesn't seem very interesting anyway. drop.sql hasn't been used since 2000, when regress.sh was removed.
-
Bruce Momjian authored
-
- 16 May, 2013 3 commits
-
-
Tom Lane authored
PathNameOpenFile failed to ensure that the correct value of errno was returned to its caller after a failure (because it incorrectly supposed that free() can never change errno). In some cases this would result in a user-visible failure because an expected ENOENT errno was replaced with something else. Bogus EINVAL failures have been observed on OS X, for example. There were also a couple of places that could mangle an important value of errno if FDDEBUG was defined. While the usefulness of that debug support is highly debatable, we might as well make it safe to use, so add errno save/restore logic to the DO_DB macro. Per bug #8167 from Nelson Minar, diagnosed by RhodiumToad. Back-patch to all supported branches.
-
Tom Lane authored
If we're going to quote a well-known pangram, we should quote it accurately. Per gripe from Thom Brown.