Skip to content
Snippets Groups Projects
  1. Jul 27, 2003
    • Bruce Momjian's avatar
      This makes the initcap function compatible with Oracle 9i, it has been · e7fe89d5
      Bruce Momjian authored
      tested on both redhat 8 and FreebSD.
      --
      Mike Nolan
      e7fe89d5
    • Bruce Momjian's avatar
      The deferred trigger queue pushing to disk patch pointed out · 1e5a16cc
      Bruce Momjian authored
      that the regression tests for foreign keys didn't seem to test
      a deferred constraint that was not satisified by a later
      statement and was not made immediate by set constraints,
      so here's a simple added test with a single invalid insert and
      a commit.
      
      Stephan Szabo
      1e5a16cc
    • Bruce Momjian's avatar
      >>You can alias $0, similar to the argument variables. And, I confirmed · 1be17f1f
      Bruce Momjian authored
      >>that you cannot change the value, similar to the argument variables:
      >
      > Perhaps you shouldn't mark it isconst; then it would actually have some
      > usefulness (you could use it directly as a temporary variable to hold
      > the intended result).  I can't see much value in aliasing it if it's
      > const, either.
      
      OK; the only change in this version is "isconst = false;". Now you can
      use $0 as a result placeholder if desired. E.g.:
      
      create or replace function tmp(anyelement, anyelement) returns anyarray as '
      declare
        v_ret alias for $0;
        v_el1 alias for $1;
        v_el2 alias for $2;
      begin
        v_ret := ARRAY[v_el1, v_el2];
        return v_ret;
      end;
      ' language 'plpgsql';
      
      create table f(f1 text, f2 text, f3 int, f4 int);
      insert into f values ('a','b',1,2);
      insert into f values ('z','x',3,4);
      
      select tmp(f1,f2) from f;
      select tmp(f3,f4) from f;
      
      
      Joe Conway
      1be17f1f
  2. Jul 26, 2003
    • Bruce Momjian's avatar
      Fix for Linux startup script. · 9df03060
      Bruce Momjian authored
      Slawomir Sudnik
      9df03060
    • Bruce Momjian's avatar
      abc7f732
    • Bruce Momjian's avatar
      I corecting date_trunc('quarter',...) and friends because orig version · 74ca6867
      Bruce Momjian authored
      doing '2003-07-30' -> '2003-04-01', '2003-11-30' ->'2003-07-01'
      
      B?jthe Zolt?n
      74ca6867
    • Bruce Momjian's avatar
      At long last I put together a patch to support 4 client SSL negotiation · 397831e1
      Bruce Momjian authored
      modes (and replace the requiressl boolean). The four options were first
      spelled out by Magnus Hagander <mha@sollentuna.net> on 2000-08-23 in email
      to pgsql-hackers, archived here:
      
      http://archives.postgresql.org/pgsql-hackers/2000-08/msg00639.php
      
      My original less-flexible patch and the ensuing thread are archived at:
      
      http://dbforums.com/t623845.html
      
      Attached is a new patch, including documentation.
      
      To sum up, there's a new client parameter "sslmode" and environment
      variable "PGSSLMODE", with these options:
      
      sslmode   description
      -------   -----------
      disable   Unencrypted non-SSL only
      allow     Negotiate, prefer non-SSL
      prefer    Negotiate, prefer SSL (default)
      require   Require SSL
      
      The only change to the server is a new pg_hba.conf line type,
      "hostnossl", for specifying connections that are not allowed to use SSL
      (for example, to prevent servers on a local network from accidentally
      using SSL and wasting cycles). Thus the 3 pg_hba.conf line types are:
      
      pg_hba.conf line types
      ----------------------
      host       applies to either SSL or regular connections
      hostssl    applies only to SSL connections
      hostnossl  applies only to regular connections
      
      These client and server options, the postgresql.conf ssl = false option,
      and finally the possibility of compiling with no SSL support at all,
      make quite a range of combinations to test. I threw together a test
      script to try many of them out. It's in a separate tarball with its
      config files, a patch to psql so it'll announce SSL connections even in
      absence of a tty, and the test output. The test is especially informative
      when run on the same tty the postmaster was started on, so the FATAL:
      errors during negotiation are interleaved with the psql client output.
      
      I saw Tom write that new submissions for 7.4 have to be in before midnight
      local time, and since I'm on the east coast in the US, this just makes it
      in before the bell. :)
      
      Jon Jensen
      397831e1
    • Tom Lane's avatar
      Update to match error editing. · 5f2499d5
      Tom Lane authored
      5f2499d5
    • Tom Lane's avatar
      Error message editing in src/pl. The plpython module could use another · 3b04893f
      Tom Lane authored
      look ... I'm not real certain which errors are strictly internal and which
      are likely to be provoked by users.
      3b04893f
    • Bruce Momjian's avatar
      Done: · 400fedc8
      Bruce Momjian authored
      > * -Allow SSL-enabled clients to turn off SSL transfers
      400fedc8
    • Bruce Momjian's avatar
      Add mention of new SSL capabilities. · 02c32319
      Bruce Momjian authored
      02c32319
  3. Jul 25, 2003
  4. Jul 24, 2003
  5. Jul 23, 2003
Loading