1. 15 6月, 2006 1 次提交
    • T
      Clean up psql's control-C handling to avoid longjmp'ing out of random · f3164c02
      Tom Lane 提交于
      places --- that risks corrupting data structures, losing sync with the
      backend, etc.  We now longjmp only from calls to readline, fgets, and
      fread, which we assume are coded to protect themselves against interrupts
      at undesirable times.  This requires adding explicit tests for
      cancel_pressed in long-running loops, but on the whole it's far cleaner.
      Martijn van Oosterhout and Tom Lane.
      f3164c02
  2. 12 6月, 2006 1 次提交
  3. 10 6月, 2006 1 次提交
  4. 08 6月, 2006 1 次提交
    • B
      Prepare code to be built by MSVC: · 399a36a7
      Bruce Momjian 提交于
      	o  remove many WIN32_CLIENT_ONLY defines
      	o  add WIN32_ONLY_COMPILER define
      	o  add 3rd argument to open() for portability
      	o  add include/port/win32_msvc directory for
      	   system includes
      
      Magnus Hagander
      399a36a7
  5. 07 6月, 2006 3 次提交
  6. 05 6月, 2006 2 次提交
  7. 04 6月, 2006 1 次提交
  8. 03 6月, 2006 1 次提交
  9. 01 6月, 2006 3 次提交
  10. 31 5月, 2006 2 次提交
  11. 30 5月, 2006 1 次提交
  12. 29 5月, 2006 2 次提交
    • T
      Fix up pg_dump to do string escaping fully correctly for client encoding · 134b463f
      Tom Lane 提交于
      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
    • A
      Don't call PQclear until the struct is really no longer going to be used. · 117d73a9
      Alvaro Herrera 提交于
      Per Coverity bug #304.  Thanks to Martijn van Oosterhout for reporting it.
      
      Zero out the pointer fields of PGresult so that these mistakes are more
      easily catched, per discussion.
      117d73a9
  13. 28 5月, 2006 2 次提交
  14. 27 5月, 2006 2 次提交
  15. 25 5月, 2006 1 次提交
  16. 22 5月, 2006 1 次提交
  17. 12 5月, 2006 1 次提交
  18. 01 5月, 2006 1 次提交
  19. 27 4月, 2006 4 次提交
  20. 26 4月, 2006 1 次提交
  21. 20 4月, 2006 1 次提交
  22. 13 4月, 2006 1 次提交
  23. 08 4月, 2006 1 次提交
  24. 05 4月, 2006 2 次提交
  25. 04 4月, 2006 1 次提交
    • T
      Define a separately configurable XLOG_BLCKSZ symbol for the page size · eaef1113
      Tom Lane 提交于
      used within WAL files.  Historically this was the same as the data file
      BLCKSZ, but there's no necessary connection, and it's possible that
      performance gains might ensue from reducing XLOG_BLCKSZ.  In any case
      distinguishing two symbols should improve code clarity.  This commit
      does not actually change the page size, only provide the infrastructure
      to make it possible to do so.  initdb forced because of addition of a
      field to pg_control.
      Mark Wong, with some help from Simon Riggs and Tom Lane.
      eaef1113
  26. 03 4月, 2006 1 次提交
    • N
      Rewrite much of psql's \connect code, for the sake of code clarity and · 7815ca7b
      Neil Conway 提交于
      to fix regressions introduced in the recent patch adding additional
      \connect options. This is based on work by Volkan YAZICI, although
      this version of the patch doesn't bear much resemblance to Volkan's
      version.
      
      \connect takes 4 optional arguments: database name, user name, host
      name, and port number. If any of those parameters are omitted or
      specified as "-", the value of that parameter from the previous
      connection is used instead; if there is no previous connection,
      the libpq default is used. Note that this behavior makes it
      impossible to reuse the libpq defaults without quitting psql and
      restarting it; I don't really see the use case for needing to do
      that.
      7815ca7b
  27. 02 4月, 2006 1 次提交