Skip to content
Snippets Groups Projects
  1. May 14, 2008
  2. May 13, 2008
  3. Jan 31, 2008
  4. Jan 30, 2008
  5. Jan 01, 2008
  6. Dec 12, 2007
    • Tom Lane's avatar
      Improve the method of localizing column names and other fixed strings in · df4271fe
      Tom Lane authored
      psql's \d commands and other uses of printQuery().  Previously we would pass
      these strings through gettext() and then send them to the server as literals
      in the SQL query.  But the code was not set up to handle doubling of quotes in
      the strings, causing failure if a translation attempted to use the wrong kind
      of quote marks, as indeed is now the case for (at least) the French
      translation of \dFp.  Another hazard was that gettext() would translate to
      whatever encoding was implied by the client's LC_CTYPE setting, which might be
      different from the client_encoding setting, which would probably cause the
      server to reject the query as mis-encoded.  The new arrangement is to send the
      untranslated ASCII strings to the server, and do the translations inside
      printQuery() after the query results come back.  Per report from Guillaume
      Lelarge and subsequent discussion.
      df4271fe
  7. Dec 11, 2007
  8. Dec 09, 2007
    • Tom Lane's avatar
      Fix up the PQconnectionUsedPassword mess: create a separate · 4f9bf7fc
      Tom Lane authored
      PQconnectionNeedsPassword function that tells the right thing for whether to
      prompt for a password, and improve PQconnectionUsedPassword so that it checks
      whether the password used by the connection was actually supplied as a
      connection argument, instead of coming from environment or a password file.
      Per bug report from Mark Cave-Ayland and subsequent discussion.
      4f9bf7fc
  9. Nov 29, 2007
  10. Nov 15, 2007
  11. Oct 27, 2007
  12. Oct 13, 2007
    • Tom Lane's avatar
      Fix the inadvertent libpq ABI breakage discovered by Martin Pitt: the · 8468146b
      Tom Lane authored
      renumbering of encoding IDs done between 8.2 and 8.3 turns out to break 8.2
      initdb and psql if they are run with an 8.3beta1 libpq.so.  For the moment
      we can rearrange the order of enum pg_enc to keep the same number for
      everything except PG_JOHAB, which isn't a problem since there are no direct
      references to it in the 8.2 programs anyway.  (This does force initdb
      unfortunately.)
      
      Going forward, we want to fix things so that encoding IDs can be changed
      without an ABI break, and this commit includes the changes needed to allow
      libpq's encoding IDs to be treated as fully independent of the backend's.
      The main issue is that libpq clients should not include pg_wchar.h or
      otherwise assume they know the specific values of libpq's encoding IDs,
      since they might encounter version skew between pg_wchar.h and the libpq.so
      they are using.  To fix, have libpq officially export functions needed for
      encoding name<=>ID conversion and validity checking; it was doing this
      anyway unofficially.
      
      It's still the case that we can't renumber backend encoding IDs until the
      next bump in libpq's major version number, since doing so will break the
      8.2-era client programs.  However the code is now prepared to avoid this
      type of problem in future.
      
      Note that initdb is no longer a libpq client: we just pull in the two
      source files we need directly.  The patch also fixes a few places that
      were being sloppy about checking for an unrecognized encoding name.
      8468146b
  13. Sep 27, 2007
  14. Sep 25, 2007
  15. Aug 10, 2007
  16. Jul 08, 2007
  17. Jun 04, 2007
    • Peter Eisentraut's avatar
      Remove gratuitous response messages from utility programs. · 9539e64b
      Peter Eisentraut authored
      (Possibly release notes material, lest users be confused.)
      
      The --quiet option is now obsolete and without effect in createdb,
      createuser, dropdb, dropuser; kept for compatibility but marked for
      removal in 8.4.
      
      Progress messages when acting on all databases now go to stdout instead
      of stderr, since they are not in fact errors.
      
      Ordered options in reindexdb reference page alphabetically, like in
      other programs' pages.
      9539e64b
  18. Apr 09, 2007
  19. Feb 13, 2007
  20. Jan 05, 2007
  21. Dec 02, 2006
  22. Nov 24, 2006
  23. Oct 21, 2006
  24. Oct 04, 2006
  25. Oct 03, 2006
  26. Sep 22, 2006
  27. Sep 02, 2006
  28. Jul 14, 2006
  29. Jun 01, 2006
  30. May 31, 2006
    • Bruce Momjian's avatar
      Escape processing patch: · eaca1175
      Bruce Momjian authored
              o  turns off escape_string_warning in pg_dumpall.c
              o  optionally use E'' for \password (undocumented option?)
              o  honor standard_conforming-strings for \copy (but not
                 support literal E'' strings)
              o  optionally use E'' for \d commands
              o  turn off escape_string_warning for createdb, createuser,
                 droplang
      eaca1175
  31. May 29, 2006
  32. May 28, 2006
    • Tom Lane's avatar
      Fix up pg_dump to do string escaping fully correctly for client encoding · 134b463f
      Tom Lane authored
      and standard_conforming_strings; likewise for the other client programs
      that need it.  As per previous discussion, a pg_dump dump now conforms
      to the standard_conforming_strings setting of the source database.
      We don't use E'' syntax in the dump, thereby improving portability of
      the SQL.  I added a SET escape_strings_warning = off command to keep
      the dumps from getting a lot of back-chatter from that.
      134b463f
  33. May 27, 2006
    • Bruce Momjian's avatar
      Use E'' strings internally only when standard_conforming_strings = · 7a846ecc
      Bruce Momjian authored
      'off'. This allows pg_dump output with standard_conforming_strings =
      'on' to generate proper strings that can be loaded into other databases
      without the backslash doubling we typically do.  I have added the
      dumping of the standard_conforming_strings value to pg_dump.
      
      I also added standard backslash handling for plpgsql.
      7a846ecc
  34. Mar 05, 2006
  35. Jan 01, 2006
  36. Dec 26, 2005
  37. Dec 23, 2005
Loading