aboutsummaryrefslogtreecommitdiff
path: root/src/bin
Commit message (Collapse)AuthorAge
* Translation updatesPeter Eisentraut2007-09-13
|
* Fix aboriginal bug in _tarAddFile(): when complaining that the amount of dataTom Lane2007-08-29
| | | | | | read from the temp file didn't match the file length reported by ftello(), the wrong variable's value was printed, and so the message made no sense. Clean up a couple other coding infelicities while at it.
* Fix pg_restore to guard against unexpected EOF while reading an archive file.Tom Lane2007-08-06
| | | | Per report and partial patch from Chad Wagner.
* Don't write timing output in quiet mode.Magnus Hagander2007-04-16
| | | | Merlin Moncure
* Translation updatesPeter Eisentraut2007-01-31
|
* Fix psql's \copy command to ensure that it cycles libpq back to the idle stateTom Lane2006-11-24
| | | | | | | | | (in particular, causing the ReadyForQuery message to be eaten) before returning from do_copy. The only known consequence of failing to do so is that get_prompt might show a wrong result for the %x transaction status escape, as reported by Bernd Helmle; but it's possible there are other issues. Back-patch as far as 7.4, the oldest version supporting %x.
* Fix 1-byte buffer overrun when OID exceeds 1 billion. This probably can'tTom Lane2006-11-22
| | | | | | cause any serious harm in normal cases, but if you have gcc buffer overrun checking turned on, that will notice. Found by Jack Orenstein. Problem was already fixed in CVS HEAD.
* Fix psql \d commands to behave properly when a pattern using regex | is given.Tom Lane2006-10-10
| | | | | | | Formerly they'd emit '^foo|bar$' which is wrong because the anchors are parsed as part of the alternatives; must emit '^(foo|bar)$' to get expected behavior. Same as bug found previously in similar_escape(). Already fixed in HEAD, this is just back-porting the part of that patch that was a bug fix.
* Fix ancient oversight in psql's \d pattern processing code: when seeing twoTom Lane2006-10-07
| | | | | | quote chars inside quote marks, should emit one quote *and stay in inquotes mode*. No doubt the lack of reports of this have something to do with the poor documentation of the feature ...
* Add a new GUC parameter backslash_quote, which determines whether the SQLTom Lane2006-05-21
| | | | | | | | | | | | | | | | | parser will allow "\'" to be used to represent a literal quote mark. The "\'" representation has been deprecated for some time in favor of the SQL-standard representation "''" (two single quote marks), but it has been used often enough that just disallowing it immediately won't do. Hence backslash_quote allows the settings "on", "off", and "safe_encoding", the last meaning to allow "\'" only if client_encoding is a valid server encoding. That is now the default, and the reason is that in encodings such as SJIS that allow 0x5c (ASCII backslash) to be the last byte of a multibyte character, accepting "\'" allows SQL-injection attacks as per CVE-2006-2314 (further details will be published after release). The "on" setting is available for backward compatibility, but it must not be used with clients that are exposed to untrusted input. Thanks to Akio Ishida and Yasuo Ohgaki for identifying this security issue.
* Change \' to '', for SQL standards compliance. Backpatch to 7.3, 7.4,Bruce Momjian2006-05-21
| | | | and 8.0. Later releases already patched.
* Fix pg_dump to add the required OPERATOR() decoration to schema-qualifiedTom Lane2006-01-09
| | | | | | operator names. This is needed when dumping operator definitions that have COMMUTATOR (or similar) links to operators in other schemas. Apparently Daniel Whitter is the first person ever to try this :-(
* Remove DOS line endings ("\r\n") from several .po files. DOS line endingsNeil Conway2006-01-01
| | | | | are inconsistent with the rest of the .po files, and apparently cause problems for Sun's cc. Per report on IRC from "bitvector2".
* Translation updatesREL7_4_10Peter Eisentraut2005-12-09
|
* Back-patch fix to correctly quote schema names in --no-owner mode.Tom Lane2005-08-25
| | | | Per gripe from Dick Kniep.
* Correct some code in pg_restore when reading the header of a tar archive:Neil Conway2005-06-22
| | | | | | | | | | | | | (1) The code doesn't initialize `sum', so the initial "does the checksum match?" test is wrong. (2) The loop that is intended to check for a "null block" just checks the first byte of the tar block 512 times, rather than each of the 512 bytes one time (!), which I'm guessing was the intent. It was only through sheer luck that this worked in the first place. Per Coverity static analysis performed by EnterpriseDB.
* Translation updatesPeter Eisentraut2005-06-17
|
* Translation updatesPeter Eisentraut2005-05-25
|
* Guard against duplicate IDs in input file in SortTocFromFile().Tom Lane2005-05-17
| | | | Per report from Brian Hackett.
* GCC 4.0 includes a new warning option, -Wformat-literal, that emitsNeil Conway2005-04-30
| | | | | | | | | | | | | | | a warning when a variable is used as a format string for printf() and similar functions (if the variable is derived from untrusted data, it could include unexpected formatting sequences). This emits too many warnings to be enabled by default, but it does flag a few dubious constructs in the Postgres tree. This patch fixes up the obvious variants: functions that are passed a variable format string but no additional arguments. Most of these are harmless (e.g. the ruleutils stuff), but there is at least one actual bug here: if you create a trigger named "%sfoo", pg_dump will read uninitialized memory and fail to dump the trigger correctly.
* This patch fixes a bug in the error message emitted by pg_restore on anNeil Conway2005-04-30
| | | | | incorrect -F argument: write_msg() expects its first parameter to be a "module name", not the format string.
* New translationsPeter Eisentraut2004-10-30
|
* Prevent pg_ctl from being run as root. Since it uses configuration filesTom Lane2004-10-22
| | | | | | | | owned by postgres, doing "pg_ctl start" as root could allow a privilege escalation attack, as pointed out by iDEFENSE. Of course the postmaster would fail, but we ought to fail a little sooner to protect sysadmins unfamiliar with Postgres. The chosen fix is to disable root use of pg_ctl in all cases, just to be confident there are no other holes.
* Prevent pg_ctl restart from adding -D datadir multiple times.Bruce Momjian2004-08-28
|
* Back-patch fix for \r\n line endings in psql's COPY support.Tom Lane2004-08-14
| | | | Andrew Dunstan.
* Fix incorrect tracking of session authorization in the presence of ACLsTom Lane2004-07-19
| | | | | that contain rights granted by non-owners. Per bug report from Nishad Prakash.
* Translation updatesPeter Eisentraut2004-06-10
|
* Translation updatesPeter Eisentraut2004-06-10
|
* [ Backpatch to 7.4.X.]Bruce Momjian2004-05-26
| | | | | | Fix problem with doing 7.0.X dumps on character varying[] fields. Christopher Kings-Lynne
* Unset PGCLIENTENCODING to prevent backend from dying if it's setTom Lane2004-05-05
| | | | to something incompatible with the -E option.
* I thought we'd made initdb safe against newline-munging issues, but onTom Lane2004-04-29
| | | | | inspection we fixed only one of the two uses of COPY :-(. Fix the other. This is already correct in CVS tip, but 7.4.3 could use the patch.
* Translation updatesPeter Eisentraut2004-04-15
|
* Translation updatesPeter Eisentraut2004-04-05
|
* Always schema-qualify the name of a function referenced in CREATE CAST.Tom Lane2004-03-02
| | | | | The former coding failed if the cast function was not in the pg_catalog schema. How'd this escape detection?
* Add missing sprompt.obj psql usage for Borland compiler, per privateBruce Momjian2004-03-02
| | | | | | report from krizsan. Backpatch to 7.4.X.
* Translation updatesDennis Bjorklund2004-02-28
|
* Cause pg_dump to emit a 'SET client_encoding' command at the start ofTom Lane2004-02-24
| | | | | | | | any restore operation, thereby ensuring that dumped data is interpreted the same way it was dumped even if the target database has a different encoding. Per suggestions from Pavel Stehule and others. Also, simplify scheme for handling check_function_bodies ... we may as well just set that at the head of the script.
* Translation updatesPeter Eisentraut2004-02-12
|
* Translation updatePeter Eisentraut2004-01-22
|
* Fix incorrect dumping of database LOCATION from 7.0.* servers.Tom Lane2004-01-22
| | | | Per report from Mattias Kregert.
* Ensure fflush(stdout) happens in all cases, per gripe from Jon Sablatnig.Tom Lane2004-01-21
|
* Translation updatePeter Eisentraut2004-01-18
|
* Translation updatesDennis Bjorklund2004-01-14
|
* pg_settings should have UPDATE privilege allowed to public.Tom Lane2004-01-14
| | | | | (Can't force initdb for this in 7.4 branch, but we can at least see to it that post-7.4.2 installations will get it right.)
* Translation updatesDennis Bjorklund2004-01-11
|
* Mark string for translation.Dennis Bjorklund2004-01-11
|
* Fix incorrect SQL syntax emitted when -E is given without -P.Tom Lane2004-01-09
| | | | Report and fix from Martin Pitt.
* Translation updatesDennis Bjorklund2004-01-08
|
* Translation updatesPeter Eisentraut2004-01-07
|
* Translation updatesPeter Eisentraut2004-01-05
|