1. 06 4月, 1997 3 次提交
  2. 05 4月, 1997 13 次提交
  3. 04 4月, 1997 14 次提交
  4. 03 4月, 1997 6 次提交
    • M
    • M
      From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov> · 2ab34dfe
      Marc G. Fournier 提交于
      Subject: [HACKERS] More date time functions
      
      Here are some additional patches mostly related to the date and time
      data types. It includes some type conversion routines to move between
      the different date types and some other date manipulation routines such
      as date_part(units,datetime).
      
      I noticed Edmund Mergl et al's neat trick for getting function overloading
      for builtin functions, so started to use that for the date and time stuff.
      Later, if someone figures out how to get function overloading directly
      for internal C code, then we can move to that technique.
      
      These patches include documentation updates (don't faint!) for the built-in
      man page. Doesn't yet include mention of timestamp, since I don't know
      much about it and since it may change a bit to become a _real_ ANSI timestamp
      which would include parser support for the declaration syntax (what do you
      think, Dan?).
      
      The patches were developed on the 970330 release, but have been rebuilt
      off of the 970402 release. The first patch below is to get libpq to compile,
      on my Linux box, but is not related to the rest of the patches and you can
      choose not to apply that one at this time. Thanks in advance, scrappy!
      2ab34dfe
    • M
      From: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at> · 920c58df
      Marc G. Fournier 提交于
      Subject: [HACKERS] libpq variable set patch
      
        Just a small change, so the automatic variable setting on
      connection startup actually works...
      920c58df
    • M
      From: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at> · a51df14a
      Marc G. Fournier 提交于
      Subject: [HACKERS] Patch: SET var TO 'val'
      
        Here is a patch that adds a "SET variable TO 'somevalue'" capability
      to the parser, and then calls the SetPGVariable() function (which does
      just issue a elog(NOTICE) to see whether it works).
      
        That's the framework for adding timezone/date format/language/...
      stuff.
      a51df14a
    • M
      From: Anton de Wet <adw@obsidian.co.za> · 17b5bd33
      Marc G. Fournier 提交于
      Subject: [HACKERS] Small patch to pgtclCmds.c
      
      Hi I have made the following small change to the extensions I made to
      pgtclCmds.c quite a while ago.
      
      At the moment there is a -assignbyidx option to pg_result assigning the
      returned tuples to an array by using the 1st field of the select statement
      as the key to the array.
      eg "select name,age from vitalstatistics" will result in an array with
      
      myarray(peter) = 32
      myarray(paul)  = 45
      
      Often I need to have a pseudo-multi dimentional
      array eg. "select name,age from vitalstatistics where occupation='plummer'
      
      I would like to be able to generate an array
      newarray(peter,overpaid) = 32
      
      So to add a arbitrary string to the key value I have extended
      
        pg_result $res -assignbyidx $arrayname
      
      to have an optional argument
      
        pg_result $res -assignbyidx $arrayname $appendstr
      
      So that that string is appended to the key value.
      17b5bd33
    • M
      From: Oleg Bartunov <oleg@sai.msu.su> · 5b1311ac
      Marc G. Fournier 提交于
      Subject: [HACKERS] locale patches !
      
      Hi there,
      
      here are little patches to get Postgres 6.1 works with locale stuff.
      This is a patch against 970402.tar.gz, there are no problem to apply them
      by hand to 6.0 release. Collate stuff tested about 1-2 months in real
      working database but I'm sure there must be no problem. US hackers
      could vote against locale implementation ( locale for sure will affect to
      speed of postgres ), so I introduce variable USE_LOCALE which
      controls locale stuff. Non-US users now could use ~* operator
      for searching and <order by> for strings with nation alphabet.
      Please, don't forget, as I did first time, to set environment variable
      LC_CTYPE and LC_COLLATE because backend get locale information from them.
      I start postmaster from a little script, assuming that shell is Bash shell
      it looks like:
      
      #!/bin/sh
      
      export LC_CTYPE=koi8-r
      export LC_COLLATE=koi8-r
      postmaster -B 1024 -S -D/usr/local/pgsql/data/ -o '-Fe'
      5b1311ac
  5. 02 4月, 1997 4 次提交