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. 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
  4. 07 6月, 2006 1 次提交
  5. 05 6月, 2006 2 次提交
  6. 04 6月, 2006 1 次提交
  7. 01 6月, 2006 3 次提交
  8. 31 5月, 2006 2 次提交
  9. 29 5月, 2006 1 次提交
    • 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
  10. 28 5月, 2006 1 次提交
  11. 27 5月, 2006 2 次提交
  12. 12 5月, 2006 1 次提交
  13. 01 5月, 2006 1 次提交
  14. 27 4月, 2006 2 次提交
  15. 20 4月, 2006 1 次提交
  16. 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
  17. 02 4月, 2006 1 次提交
  18. 21 3月, 2006 1 次提交
  19. 15 3月, 2006 1 次提交
    • T
      Improve parser so that we can show an error cursor position for errors · 20ab467d
      Tom Lane 提交于
      during parse analysis, not only errors detected in the flex/bison stages.
      This is per my earlier proposal.  This commit includes all the basic
      infrastructure, but locations are only tracked and reported for errors
      involving column references, function calls, and operators.  More could
      be done later but this seems like a good set to start with.  I've also
      moved the ReportSyntaxErrorPosition logic out of psql and into libpq,
      which should make it available to more people --- even within psql this
      is an improvement because warnings weren't handled by ReportSyntaxErrorPosition.
      20ab467d
  20. 07 3月, 2006 1 次提交
  21. 06 3月, 2006 2 次提交
  22. 05 3月, 2006 1 次提交
  23. 04 3月, 2006 4 次提交
  24. 19 2月, 2006 1 次提交
  25. 14 2月, 2006 1 次提交
  26. 13 2月, 2006 2 次提交
    • T
      562f63b0
    • B
      Remove LEFT part of JOIN to pg_roles because of optimizer limitation: · 05e27a9c
      Bruce Momjian 提交于
      > True, but they're not being used where you'd expect. This seems to be
      > something to do with the fact that it's not pg_authid which is being
      > accessed, but rather the view pg_roles.
      
      I looked into this and it seems the problem is that the view doesn't
      get flattened into the main query because of the has_nullable_targetlist
      limitation in prepjointree.c.  That's triggered because pg_roles has
              '********'::text AS rolpassword
      which isn't nullable, meaning it would produce wrong behavior if
      referenced above the outer join.
      
      Ultimately, the reason this is a problem is that the planner deals only
      in simple Vars while processing joins; it doesn't want to think about
      expressions.  I'm starting to think that it may be time to fix this,
      because I've run into several related restrictions lately, but it seems
      like a nontrivial project.
      
      In the meantime, reducing the LEFT JOIN to pg_roles to a JOIN as per
      Peter's suggestion seems like the best short-term workaround.
      05e27a9c
  27. 12 2月, 2006 3 次提交