1. 01 4月, 2008 2 次提交
    • T
      Fix an oversight I made in a cleanup patch over a year ago: · 6b73d7e5
      Tom Lane 提交于
      eval_const_expressions needs to be passed the PlannerInfo ("root") structure,
      because in some cases we want it to substitute values for Param nodes.
      (So "constant" is not so constant as all that ...)  This mistake partially
      disabled optimization of unnamed extended-Query statements in 8.3: in
      particular the LIKE-to-indexscan optimization would never be applied if the
      LIKE pattern was passed as a parameter, and constraint exclusion depending
      on a parameter value didn't work either.
      6b73d7e5
    • T
      Apply my original fix for Taiki Yamaguchi's bug report about DISTINCT MAX(). · d3441155
      Tom Lane 提交于
      Add some regression tests for plausible failures in this area.
      d3441155
  2. 31 3月, 2008 5 次提交
    • T
      Fix my brain fade in TRUNCATE triggers patch: can't release relcache refcounts · e86237ff
      Tom Lane 提交于
      while EState still contains pointers to those relations.  Exposed by the
      CLOBBER_CACHE_ALWAYS tests that buildfarm member jaguar is running (I knew
      those cycles would pay off...)
      e86237ff
    • T
      Use error message wordings for permissions checks on .pgpass and SSL private · 3405f2b9
      Tom Lane 提交于
      key files that are similar to the one for the postmaster's data directory
      permissions check.  (I chose to standardize on that one since it's the most
      heavily used and presumably best-wordsmithed by now.)  Also eliminate explicit
      tests on file ownership in these places, since the ensuing read attempt must
      fail anyway if it's wrong, and there seems no value in issuing the same error
      message for distinct problems.  (But I left in the explicit ownership test in
      postmaster.c, since it had its own error message anyway.)  Also be more
      specific in the documentation's descriptions of these checks.  Per a gripe
      from Kevin Hunter.
      3405f2b9
    • T
      Fix a number of places that were making file-type tests infelicitously. · c5f11f9d
      Tom Lane 提交于
      The places that did, eg,
      	(statbuf.st_mode & S_IFMT) == S_IFDIR
      were correct, but there is no good reason not to use S_ISDIR() instead,
      especially when that's what the other 90% of our code does.  The places
      that did, eg,
      	(statbuf.st_mode & S_IFDIR)
      were flat out *wrong* and would fail in various platform-specific ways,
      eg a symlink could be mistaken for a regular file on most Unixen.
      
      The actual impact of this is probably small, since the problem cases
      seem to always involve symlinks or sockets, which are unlikely to be
      found in the directories that PG code might be scanning.  But it's
      clearly trouble waiting to happen, so patch all the way back anyway.
      (There seem to be no occurrences of the mistake in 7.4.)
      c5f11f9d
    • T
      Show database access privileges in psql's \l command. For \l+, also show · b65a5097
      Tom Lane 提交于
      database size, when available to the current user.
      
      Andrew Gilligan
      b65a5097
    • T
      Display incoming as well as outgoing foreign-key constraints in psql's · 2be368a5
      Tom Lane 提交于
      \d output for a table.
      
      Kenneth D'Souza, some changes by myself.
      2be368a5
  3. 30 3月, 2008 3 次提交
  4. 29 3月, 2008 1 次提交
  5. 28 3月, 2008 10 次提交
  6. 27 3月, 2008 7 次提交
  7. 26 3月, 2008 10 次提交
  8. 25 3月, 2008 2 次提交