1. 15 Dec, 2008 5 commits
    • Tom Lane's avatar
      Arrange for the pg_foo_is_visible and has_foo_privilege families of functions · 66bb74db
      Tom Lane authored
      to return NULL, instead of erroring out, if the target object is specified by
      OID and we can't find that OID in the catalogs.  Since these functions operate
      internally on SnapshotNow rules, there is a race condition when using them
      in user queries: the query's MVCC snapshot might "see" a catalog row that's
      already committed dead, leading to a failure when the inquiry function is
      applied.  Returning NULL should generally provide more convenient behavior.
      This issue has been complained of before, and in particular we are now seeing
      it in the regression tests due to another recent patch.
      66bb74db
    • Michael Meskes's avatar
      Do not try to change a const variable. · 3f7e1e4b
      Michael Meskes authored
      3f7e1e4b
    • Tom Lane's avatar
      Reduce the scaling factor for attstattarget to number-of-lexemes from 100 · 301194f8
      Tom Lane authored
      to 10, to compensate for the recent change in default statistics target.
      The original number was pulled out of the air anyway :-(, but it was picked
      in the context of the old default, so holding the default size of the
      MCELEM array constant seems the best thing.  Per discussion.
      301194f8
    • Tom Lane's avatar
      Remove our dependencies on MB_CUR_MAX in favor of believing that · b4d64a6d
      Tom Lane authored
      pg_database_encoding_max_length() predicts the maximum character length
      returned by wchar2char().  Per Hiroshi Inoue, MB_CUR_MAX isn't usable on
      Windows because we allow encoding = UTF8 when the locale says differently;
      and getting rid of it seems a good idea on general principles because it
      narrows our dependence on libc's locale API just a little bit more.
      
      Also install a check for overflow of the buffer size computation.
      b4d64a6d
    • Magnus Hagander's avatar
      Support specifying filename for SSL certificate, key, root certificate store · 5f3724dd
      Magnus Hagander authored
      and certificate revokation list by using connection parameters or environment
      variables.
      
      Original patch by Mark Woodward, heavily reworked by Alvaro Herrera and
      Magnus Hagander.
      5f3724dd
  2. 14 Dec, 2008 2 commits
  3. 13 Dec, 2008 3 commits
    • Tom Lane's avatar
      Increase the default value of default_statistics_target from 10 to 100, · 65e3ea76
      Tom Lane authored
      and its maximum value from 1000 to 10000.  ALTER TABLE SET STATISTICS
      similarly now allows a value up to 10000.  Per discussion.
      65e3ea76
    • Tom Lane's avatar
      Remove pg_plan_queries()'s now-useless needSnapshot parameter. It's useless · b69bde77
      Tom Lane authored
      in 8.3, too, but I'm not back-patching this change since it would break any
      extension modules that might be calling that function.
      b69bde77
    • Tom Lane's avatar
      Fix failure to ensure that a snapshot is available to datatype input functions · c98a9237
      Tom Lane authored
      when they are invoked by the parser.  We had been setting up a snapshot at
      plan time but really it needs to be done earlier, before parse analysis.
      Per report from Dmitry Koterov.
      
      Also fix two related problems discovered while poking at this one:
      exec_bind_message called datatype input functions without establishing a
      snapshot, and SET CONSTRAINTS IMMEDIATE could call trigger functions without
      establishing a snapshot.
      
      Backpatch to 8.2.  The underlying problem goes much further back, but it is
      masked in 8.1 and before because we didn't attempt to invoke domain check
      constraints within datatype input.  It would only be exposed if a C-language
      datatype input function used the snapshot; which evidently none do, or we'd
      have heard complaints sooner.  Since this code has changed a lot over time,
      a back-patch is hardly risk-free, and so I'm disinclined to patch further
      than absolutely necessary.
      c98a9237
  4. 12 Dec, 2008 2 commits
  5. 11 Dec, 2008 4 commits
  6. 10 Dec, 2008 2 commits
  7. 09 Dec, 2008 3 commits
  8. 08 Dec, 2008 4 commits
  9. 07 Dec, 2008 2 commits
  10. 06 Dec, 2008 3 commits
  11. 05 Dec, 2008 1 commit
  12. 04 Dec, 2008 7 commits
  13. 03 Dec, 2008 2 commits