1. 11 9月, 2005 1 次提交
    • T
      Fix some corner-case bugs in _sendSQLLine's parsing of SQL commands · c7d1a8d4
      Tom Lane 提交于
      > found in a pg_dump archive.  It had problems with dollar-quote tags
      broken across bufferload boundaries (this may explain bug report from
      Rod Taylor), also with dollar-quote literals of the form $a$a$...,
      and was also confused about the rules for backslash in double quoted
      identifiers (ie, they're not special).  Also put in placeholder support
      for E'...' literals --- this will need more work later.
      c7d1a8d4
  2. 27 7月, 2005 1 次提交
  3. 02 7月, 2005 1 次提交
  4. 22 6月, 2005 1 次提交
  5. 07 11月, 2004 1 次提交
  6. 16 10月, 2004 1 次提交
  7. 02 10月, 2004 1 次提交
  8. 11 9月, 2004 1 次提交
  9. 29 8月, 2004 2 次提交
  10. 21 8月, 2004 2 次提交
    • B
      They are two different problems; the TOC entry is important for any · f7168bd4
      Bruce Momjian 提交于
      multiline command  or to rerun the command easily later.
      
      Whereas displaying the failed SQL command is a matter of fixing the
      error
      messages.
      
      The latter is complicated by failed COPY commands which, with
      die-on-errors
      off, results in the data being processed as a command, so dumping the
      command will dump all of the data.
      
      In the case of long commands, should the whole command be dumped? eg.
      (eg.
      several pages of function definition).
      
      In the case of the COPY command, I'm not sure what to do. Obviously, it
      would be best to avoid sending the data, but the data and command are
      combined (from memory). Also, the 'data' may be in the form of INSERT
      statements.
      
      Attached patch produces the first 125 chars of the command:
      
      pg_restore: [archiver (db)] Error while PROCESSING TOC:
      pg_restore: [archiver (db)] Error from TOC Entry 26; 1255 16449270
      FUNCTION
      plpgsql_call_handler() pjw
      pg_restore: [archiver (db)] could not execute query: ERROR:  function
      "plpgsql_call_handler" already exists with same argument types
           Command was: CREATE FUNCTION plpgsql_call_handler() RETURNS
      language_handler
           AS '/var/lib/pgsql-8.0b1/lib/plpgsql', 'plpgsql_call_han...
      pg_restore: [archiver (db)] Error from TOC Entry 27; 1255 16449271
      FUNCTION
      plpgsql_validator(oid) pjw
      pg_restore: [archiver (db)] could not execute query: ERROR:  function
      "plpgsql_validator" already exists with same argument types
           Command was: CREATE FUNCTION plpgsql_validator(oid) RETURNS void
           AS '/var/lib/pgsql-8.0b1/lib/plpgsql', 'plpgsql_validator'
           LANGU...
      
      Philip Warner
      f7168bd4
    • B
      This patch allows pg_restore to recognize $-quotes in SQL queries. It · 1b5e0143
      Bruce Momjian 提交于
      will treat any unquoted string that starts with a $ and has no preceding
      identifier chars as a potential $-quote tag, it then makes sure that the
      tag chars are valid. If so, it processes the $-quote.
      
      Philip Warner
      1b5e0143
  11. 22 4月, 2004 1 次提交
  12. 04 3月, 2004 1 次提交
    • T
      Modify pg_dump so that the preferred dump order is by name within · 9e733eab
      Tom Lane 提交于
      object types, rather than by OID.  This should help ensure consistent
      dump output from databases that are logically the same but have different
      histories, per recent discussion about 'diffing' databases.  The patch
      is bulky because of renaming of fields, but not very complicated.
      Also, do some tweaking to cause BLOB restoration to be done in a better
      order, and clean up pg_restore's textual output to exactly match pg_dump.
      9e733eab
  13. 30 11月, 2003 1 次提交
    • P
      · 969685ad
      PostgreSQL Daemon 提交于
      $Header: -> $PostgreSQL Changes ...
      969685ad
  14. 04 10月, 2003 1 次提交
  15. 23 7月, 2003 1 次提交
  16. 22 6月, 2003 1 次提交
  17. 14 5月, 2003 1 次提交
  18. 15 2月, 2003 1 次提交
  19. 13 2月, 2003 1 次提交
    • B
      [ dumping schemas ] · 2bd63117
      Bruce Momjian 提交于
      > I don't care what you use for short options if all useful ones are taken.
      > But the long option should be --schema.
      
      Ok, fair enough: a revised patch is attached that uses the '-n' short
      option and the '--schema' long option.
      
      Neil Conway
      2bd63117
  20. 02 2月, 2003 1 次提交
  21. 23 10月, 2002 1 次提交
  22. 16 10月, 2002 1 次提交
  23. 08 9月, 2002 1 次提交
  24. 05 9月, 2002 1 次提交
  25. 28 8月, 2002 1 次提交
  26. 21 8月, 2002 1 次提交
  27. 18 8月, 2002 1 次提交
    • P
      Make pg_dump output more portable and more pleasing to look at. · c828ec88
      Peter Eisentraut 提交于
      The -n and -N options were removed.  Quoting is now smart enough to
      supply quotes if and only if necessary.
      
      Numerical types are now printed without quotes, except in cases of
      special values such as NaN.
      
      Boolean values printed as true and false.
      
      Most string literals now do not escape whitespace characters (newlines,
      etc.) for portability.
      
      SET SESSION AUTHORIZATION argument is a string literal, to follow SQL.
      
      Made commands output by pg_dump use consistent spacing and indentation.
      c828ec88
  28. 11 8月, 2002 1 次提交
  29. 07 7月, 2002 1 次提交
  30. 04 7月, 2002 1 次提交
  31. 29 5月, 2002 1 次提交
  32. 11 5月, 2002 1 次提交
  33. 19 1月, 2002 2 次提交
  34. 25 10月, 2001 1 次提交
  35. 19 10月, 2001 1 次提交
  36. 16 10月, 2001 1 次提交
  37. 22 9月, 2001 1 次提交