1. 14 Jul, 2005 6 commits
  2. 13 Jul, 2005 9 commits
  3. 12 Jul, 2005 6 commits
  4. 11 Jul, 2005 5 commits
  5. 10 Jul, 2005 14 commits
    • Tom Lane's avatar
      Missed adding extra argument to array_recv in a couple of places · 8826fe85
      Tom Lane authored
      (harmless, actually, but let's be tidy).
      8826fe85
    • Tom Lane's avatar
      Change typreceive function API so that receive functions get the same · d78397d3
      Tom Lane authored
      optional arguments as text input functions, ie, typioparam OID and
      atttypmod.  Make all the datatypes that use typmod enforce it the same
      way in typreceive as they do in typinput.  This fixes a problem with
      failure to enforce length restrictions during COPY FROM BINARY.
      d78397d3
    • Bruce Momjian's avatar
      > One more failure: · 2e330699
      Bruce Momjian authored
      >
      > I think this is because we don't have -lz in SHLIB_LINK.
      > Following patch fixes it.
      
      Marko Kreen
      2e330699
    • Bruce Momjian's avatar
      Add extra argument for new pg_regexec API. · 21634e51
      Bruce Momjian authored
      21634e51
    • Tom Lane's avatar
      Suppress compile warning. · aacfeba6
      Tom Lane authored
      aacfeba6
    • Bruce Momjian's avatar
      Rename xmalloc to pg_malloc for consistency with psql usage. · e8a3e6b8
      Bruce Momjian authored
      Add missing plperl include.
      e8a3e6b8
    • Bruce Momjian's avatar
      Reverse pg_malloc patch because psql/print.c is used in scripts files · f86c63ab
      Bruce Momjian authored
      that don't have pg_malloc.
      f86c63ab
    • Bruce Momjian's avatar
      8c9393c6
    • Bruce Momjian's avatar
      Remove #include <openssl/bn.h> as compile fix. · 6e1004f0
      Bruce Momjian authored
      Marko Kreen
      6e1004f0
    • Bruce Momjian's avatar
      Following up a previous thought I had, yesterday I realised how to · b135508c
      Bruce Momjian authored
      return arays nicely without having to make the plperl programmer aware
      of anything. The attached patch allows plperl to return an arrayref
      where the function returns an array type. It silently calls a perl
      function to stringify the array before passing it to the pg array
      parser. Non-array returns are handled as before (i.e. passed through
      this process) so it is backwards compatible. I will presently submit
      regression tests and docs.
      
      example:
      
      andrew=# create or replace function blah() returns text[][] language
      plperl as $$ return [['a"b','c,d'],['e\\f','g']]; $$;
      CREATE FUNCTION
      andrew=# select blah();
                  blah
      -----------------------------
       {{"a\"b","c,d"},{"e\\f",g}}
      
      
      This would complete half of the TODO item:
      
        . Pass arrays natively instead of as text between plperl and postgres
      
      (The other half is translating pg array arguments to perl arrays - that
      will have to wait for 8.1).
      
      Some of this patch is adapted from a previously submitted patch from
      Sergej Sergeev. Both he and Abhijit Menon-Sen have looked it over
      briefly and tentatively said it looks ok.
      
      Andrew Dunstan
      b135508c
    • Bruce Momjian's avatar
      The attached patch implements spi_query() and spi_fetchrow() functions · 6d92f210
      Bruce Momjian authored
      for PL/Perl, to avoid loading the entire result set into memory as the
      existing spi_exec_query() function does.
      
      Here's how one might use the new functions:
      
          $x = spi_query("select ...");
          while (defined ($y = spi_fetchrow($x))) {
              ...
              return_next(...);
          }
      
      The changes do not affect the spi_exec_query() interface in any way.
      
      Abhijit Menon-Sen
      6d92f210
    • Bruce Momjian's avatar
      Add --encoding to pg_dump. · d1cffe2f
      Bruce Momjian authored
      The Problem:  Occassionally a DBA needs to dump a database to a new
      encoding.   In instances where the current encoding, (or lack of an
      encoding, like SQL_ASCII) is poorly supported on the target  database
      server, it can be useful to dump into a particular  encoding.  But,
      currently the only way to set the encoding of  a pg_dump file is to
      change  client_encoding in postgresql.conf and restart postmaster.
      This is more  than a little awkward for production systems.
      
      Magnus Hagander
      d1cffe2f
    • Bruce Momjian's avatar
      This patch implements putting language handlers for the optional PLs · 07931080
      Bruce Momjian authored
      into pg_catalog rather than public, and supports dumping languages whose
      handlers are found there. This will make it easier to drop the public
      schema if desired.
      
      Unlike the previous patch, the comments have been updated and I have
      reformatted some code to meet Alvarro's request to stick to 80 cols. (I
      actually aghree with this - it makes printing the code much nicer).
      
      I think I did the right thing w.r.t versions earlier than 7.3, but I
      have no real way of checking, so that should be checked by someone with
      more/older knowledge than me ;-)
      
      Andrew Dunstan
      07931080
    • Bruce Momjian's avatar
      As Kris Jurka found out, pgcrypto does not work with · d51df918
      Bruce Momjian authored
      OpenSSL 0.9.6x.  The DES functions use the older 'des_'
      API, but the newer 3DES functions use the 0.9.7x-only
      'DES_' API.
      
      I think I just used /usr/include/openssl/des.h for reference
      when implementing them, and had upgraded OpenSSL in the
      meantime.
      
      Following patch converts DES also to newer API and provides
      compatibility functions for OpenSSL < 0.9.7.
      
      I chose this route because:
      
      - openssl.c uses few DES functions.
      - compatibility for old 'des_' API is going away at some point
        of time from OpenSSL.
      - as seen from macros, new API is saner
      - Thus pgcrypto supports any OpenSSL version from 0.9.5 to 1.0
      
      Tested with OpenSSL 0.9.6c and 0.9.7e.
      
      Marko Kreen
      d51df918