1. 15 3月, 1999 16 次提交
    • B
      Hi All, · 98ad3fcf
      Bruce Momjian 提交于
      I've changed the check_primary_key() function code to allow for either
      the "automatic insert key rule" or "dependent insert key rule".
      Previously it restricted the addtion of a child entry if the
      corresponding parent entry was not there. Now if the option is
      "automatic" it will add an entry in the parent too ( it will be
      successful if there are no no-null fields in the parent apart from the
      primary key).
      The way to use it now is:
      :/*
       * check_primary_key () -- check that key in tuple being
      inserted/updated
       *                       references existing tuple in "primary" table.
       * Though it's called without args You have to specify referenced
       * table/keys while creating trigger:  key field names in triggered
      table,
       * referenced table name, referenced key field names,type of action
      [automatic|dependent]:
       * EXECUTE PROCEDURE
       * check_primary_key ('Fkey1', 'Fkey2', 'Ptable', 'Pkey1', 'Pkey2',
      '[automatic|dependent]').
       */
      I am attaching the new ../contrib/spi/refint.c file which will do this.
      I will be glad to help in case of any problems.
      
      - Anand.
      98ad3fcf
    • B
      cleanup · db42533e
      Bruce Momjian 提交于
      db42533e
    • B
      Cleanup · 5d34abc6
      Bruce Momjian 提交于
      5d34abc6
    • B
      Reversed out libpq protocol patch for Tom Lane. · d66a44a5
      Bruce Momjian 提交于
      d66a44a5
    • B
      src/backend/utils/adt/numeric.c fails to compile due to a string having · 8930699c
      Bruce Momjian 提交于
      an
      embedded new-line character.
      
      
      Billy G. Allie
      8930699c
    • B
      This is another example of why not allowing utility functions in SPI · cfb7ed41
      Bruce Momjian 提交于
      would be a Bad Thing.
      
      For what it's worth, I found another case in libpq where you can get a T
      message without a D that my utility patch needs to handle.  I have
      attached
      the updated patch against the 6.4.2 version of
      src/interfaces/libpq/fe-exec.c
      
      Jerry Gay
      cfb7ed41
    • B
      Attempting to insert a value of 'now' into a datetime type · c10e6bcb
      Bruce Momjian 提交于
      results in a bogus datetime value under AlphaLinux.  (Note that
      the link to submit a port-specific bug on your website is broken)
      
      -Test Case:
      ----------
      testdb=> create table dttest (dt datetime);
      testdb=> insert into dttest values ('now');
      
      --------------------------------------------------------------------------
      
      
      Solution:
      ---------
      The basic problem is the typedefs of AbsoluteTime and RelativeTime,
      which are both 'int32'.  These types appear to be used synonymously
      with the 'time_t' type, which on AlphaLinux is typedef'd as a 'long
      int', which is 64-bits (not 32).  The solution included here fixes
      the datetime type (it now passes the regression test), but does not
      pass the absolute and relative time regression tests.  Presumably, a
      more thorough investigation of how these types are used is warranted.
      The included patch is from the v6.3.2 source, but can be applied to
      the v6.4.2 source.  Please note that there is also a RedHat-specific
      patch distributed with the PostgreSQL source package from RedHat
      that was applied first.
      
      Rich Edwards
      c10e6bcb
    • B
      Hi, · e2c4d41f
      Bruce Momjian 提交于
          Just in case you'd like to see what I was talking about, I am
      attaching
      my patch to src/interfaces/libpq/fe-exec.c to prevent utility functions
      called from SPI from locking up the client.
      
      Jerry Gay
      e2c4d41f
    • B
      Here is a little syntax error found in a .y file... A dropped semi. · 80db587e
      Bruce Momjian 提交于
      DwD
      --
      Daryl W. Dunbar
      80db587e
    • B
      Cleanup of hash functions in pg_proc. · 042ec823
      Bruce Momjian 提交于
      042ec823
    • B
      compile cleanup · 1d3166d3
      Bruce Momjian 提交于
      1d3166d3
    • B
      Compile cleanup · f1cdcffb
      Bruce Momjian 提交于
      f1cdcffb
    • B
      Done. · 4c939223
      Bruce Momjian 提交于
      o overwriting an existing lobj now works
      o 8KB garbage block always inserted problem is fixed
      
      Tatsuo Ishii
      4c939223
    • B
      I've been having also sorts of fun trying to get kerberos 4 · 9cab13c4
      Bruce Momjian 提交于
      authentifica
      tion
      working with postgresql-6.4.2 and  KTH-KRB Ebones
      (http://www.pdc.kth.se/kth-kr
      b) on a dec alpha running DU 4.0D using the native compiler. The
      following
      patch does the trick.
      
      The rationale behind this is as follows. The KTH-KRB code header files
      defines
      lots of lengths like INST_SZ,REALM_SZ and KRB_SENDAUTH_VLEN. It also has
      a
      habit of doing things like
      
              chararray[LENGTH] = '\0'
      
      to ensure null terminated strings. In my instance this just happens to
      blat
      the kerberos principal instance string leading to error like
      
              pg_krb4_recvauth: kerberos error: Can't decode authenticator
      (krb_rd_req
      )
      
      The application code that comes with KTH-KRB uses "KRB_SENDAUTH_VLEN +
      1" and
      sometimes uses "INST_SZ + 1" so it seems safest to put that 1 char
      buffer in
      the appropriate place.
      
      
      Rodney McDuff
      9cab13c4
    • B
      We have tested the patches on three platforms: · aba8c12f
      Bruce Momjian 提交于
      NetBSD/macppc
      LinuxPPC
      FreeBSD 2.2.6-RELEASE
      
      All of them seem happy with the regression test. Note that, however,
      compiling with optimization enabled on NetBSD/macppc causes an initdb
      failure (other two platforms are ok). After checking the asm code, we
      are suspecting that might be a compiler(egcs) bug.
      
      Tatsuo Ishii
      aba8c12f
    • B
      This patch improves the destroyuser script's behaviour in checking whether · e94fffc1
      Bruce Momjian 提交于
      the user is allowed to detroy users.  It also allows for a possible incorrect
      empty reply to a yes/no question.
      
      
      Oliver Elphick
      e94fffc1
  2. 14 3月, 1999 7 次提交
    • B
      Patches for the SGML documentation relating · f45ec44c
      Bruce Momjian 提交于
      to the tutorial code changes.
      
      NOTE:  I couldn't get ngsmls to find the document
      type so that the changes could be checked.  However,
      the changes were very minor:
      
      Best,
      
      Clark
      f45ec44c
    • B
      Fixup for src/tutorial/func.c and src/tutorial/func.source · 344190b7
      Bruce Momjian 提交于
      Removed char16 and replaced with an example using Point
      as suggested by Tom Lane.  The dept field was changed to
      the cubicle field denoting the row(x) and column(y) of
      the employee's cube in the corporate jungle.  The C function
      builds a 'compromise' cubicle from two suggested ones.
      
      I'll try and patchup the documentation next.
      
      Clark
      344190b7
    • B
      Hello, · f6a9ed04
      Bruce Momjian 提交于
      I've been working on the following TODO list item:
        * psql \d on index with char()/varchar() fields shows improper length
      
      I've attached a simple patch to fix this.
      
      -Ryan
      f6a9ed04
    • B
      The isWritable method in ResultSetMetaData returns the logically · 983fc976
      Bruce Momjian 提交于
      incorrect result. This bug goes back to at least 6.3.
      
      Alvin
      983fc976
    • B
      I have a problem with Access97 not working properly when entering new · d13fe290
      Bruce Momjian 提交于
      records using a sub form, i.e. entering a new order/orderlines or master
      and
      detail tables.  The problem is caused by a SQL statement that Access97
      makes
      involving NULL.  The syntax that fails is "column_name" = NULL.  The
      following attachment was provided by -Jose'-.  It contains a very small
      enhancement to gram.y that will allow Access97 to work properly with sub
      forms.  Can this enhancement be added to release 6.5?
      
       <<gram.patch>>
      Thanks, Michael
      d13fe290
    • B
      There are errors in the PGmoney class in the conversion routines over · fd80c102
      Bruce Momjian 提交于
      the handling of negative numbers and commas. The attached path attempts
      to fix these.
      However the getValue method does not yet insert commas into the
      generated string.
      Also in getValue there is an incorrect assumption that the currency
      symbol is '$', it should of course be '£'!. I have no idea on how to go
      about fixing this one.
      
      Alvin
      fd80c102
    • B
      Enclosed below I have a patch to allow a btree index on the int8 type. · 817a3e6d
      Bruce Momjian 提交于
      I would like some feedback on what the hash function for the int8 hash
      function
      in the ./backend/access/hash/hashfunc.c should return.
      
      Also, could someone (maybe Tomas Lockhart?) look-over the patch and make
      sure
      the system table entries are correct?  I've tried to research them as
      much as I
      could, but some of them are still not clear to me.
      
      Thanks,
      -Ryan
      817a3e6d
  3. 11 3月, 1999 1 次提交
  4. 10 3月, 1999 3 次提交
  5. 09 3月, 1999 2 次提交
    • M
      · 1c264e68
      Marc G. Fournier 提交于
      From: Constantin Teodorescu <teo@flex.ro>
      
      UPgrade to 0.96 ..
      1c264e68
    • M
      · f34240de
      Marc G. Fournier 提交于
      Changes to fix/improve the dynamic loading on NT
      
      From: Horak Daniel <horak@mmp.plzen-city.cz>
      f34240de
  6. 08 3月, 1999 6 次提交
  7. 07 3月, 1999 5 次提交