Skip to content
Snippets Groups Projects
  1. Feb 15, 2000
  2. Feb 13, 2000
    • Bruce Momjian's avatar
      contrib-array.patch · a2226ad2
      Bruce Momjian authored
              this is an old patch which I have already submitted and never seen
              in the sources. It corrects the datatype oids used in some iterator
              functions. This bug has been reported to me by many other people.
      
      contrib-datetime.patch
      
              some code contributed by Reiner Dassing <dassing@wettzell.ifag.de>
      
      contrib-makefiles.patch
      
              fixes all my contrib makefiles which don't work with some compilers,
              as reported to me by another user.
      
      contrib-miscutil.patch
      
              an old patch for one of my old contribs.
      
      contrib-string.patch
      
              a small change to the c-like text output functions. Now the '{'
              is escaped only at the beginning of the string to distinguish it
              from arrays, and the '}' is no more escaped.
      
      elog-lineno.patch
      
              adds the current lineno of CopyFrom to elog messages. This is very
              useful when you load a 1 million tuples table from an external file
              and there is a bad value somehere. Currently you get an error message
              but you can't know where is the bad data. The patch uses a variable
              which was declared static in copy.c. The variable is now exported
              and initialized to 0. It is always cleared at the end of the copy
              or at the first elog message or when the copy is canceled.
              I know this is very ugly but I can't find any better way of knowing
              where the copy fails and I have this problem quite often.
      
      plperl-makefile.patch
      
              fixes a typo in a makefile, but the error must be elsewhere because
              it is a file generated automatically. Please have a look.
      
      tprintf-timestamp.patch
      
              restores the original 2-digit year format, assuming that the two
              century digits don't carry much information and that '000202' is
              easier to read than 20000202. Being only a log file it shouldn't
              break anything.
      
      Please apply the patches before the next scheduled code freeze.
      
      I also noticed that some of the contribs don't compile correcly. Should we
      ask people to fix their code or rename their makefiles so that they are
      ignored by the top makefile?
      
      --
      Massimo Dal Zotto
      a2226ad2
    • Bruce Momjian's avatar
      2. trigger.c fails to compile due to a syntax error. It contains · 77d31cf3
      Bruce Momjian authored
          a switch statement that has an empty default label.  A label of a
          switch statement must be followed by a statement (or a label which
          is followed by a statement (or a label which ...)).
      
      3.  Files include stringinfo.h failed to compile.  The macro,
          'appendStringInfoCharMacro' is implemented with a '?:' operation
          that returns a void expression for the true part and a char expresion
          for the false part.  Both the true and false parts of the '?:' oper-
          ator must return the same type.
      
      Billy G. Allie
      77d31cf3
  3. Feb 10, 2000
  4. Feb 09, 2000
    • Bruce Momjian's avatar
      I checked the WinNT port yesterday (a few days old snapshot from CVS) and I · ecd85373
      Bruce Momjian authored
      am including a patch to get it compile.
      
      changes to psql:
      - added less as default pager when compiling on Cygwin
      - need to declare "filename_completion_function" because it is not exported
      from readline -> added to include/port/win.h
      
      changes to pg_id:
      - include of <getopt.h>
      - add .exe when installing
      
      I think there is a problem with calling the regress tests on WinNT - it
      should be called with PORTNAME not HOST as the parameter to regress.sh or
      the check  when to add "-h localhost" to psql has to be changed. Now it is
      checked against the PORTNAME.
      
      The results of the regress tests were OK with expected failures ;-)
      
      Daniel Horak
      ecd85373
  5. Feb 08, 2000
  6. Feb 07, 2000
    • Tom Lane's avatar
      Repair planning bugs caused by my misguided removal of restrictinfo link · d8733ce6
      Tom Lane authored
      fields in JoinPaths --- turns out that we do need that after all :-(.
      Also, rearrange planner so that only one RelOptInfo is created for a
      particular set of joined base relations, no matter how many different
      subsets of relations it can be created from.  This saves memory and
      processing time compared to the old method of making a bunch of RelOptInfos
      and then removing the duplicates.  Clean up the jointree iteration logic;
      not sure if it's better, but I sure find it more readable and plausible
      now, particularly for the case of 'bushy plans'.
      d8733ce6
  7. Feb 06, 2000
  8. Feb 05, 2000
  9. Jan 31, 2000
    • Jan Wieck's avatar
      Fixed bug in NO ACTION trigger proc entries. · c823143f
      Jan Wieck authored
      Jan
      c823143f
    • Tom Lane's avatar
      Fix problems seen in parallel regress tests when SI buffer overruns (causing · a152ebee
      Tom Lane authored
      syscache and relcache flushes).  Relcache entry rebuild now preserves
      original tupledesc, rewrite rules, and triggers if possible, so that pointers
      to these things remain valid --- if these things change while relcache entry
      has positive refcount, we elog(ERROR) to avoid later crash.  Arrange for
      xact-local rels to be rebuilt when an SI inval message is seen for them,
      so that they are updated by CommandCounterIncrement the same as regular rels.
      (This is useful because of Hiroshi's recent changes to process our own SI
      messages at CommandCounterIncrement time.)  This allows simplification of
      some routines that previously hacked around the lack of an automatic update.
      catcache now keeps its own copy of tupledesc for its relation, rather than
      depending on the relcache's copy; this avoids needing to reinitialize catcache
      during a cache flush, which saves some cycles and eliminates nasty circularity
      problems that occur if a cache flush happens while trying to initialize a
      catcache.
      Eliminate a number of permanent memory leaks that used to happen during
      catcache or relcache flush; not least of which was that catcache never
      freed any cached tuples!  (Rule parsetree storage is still leaked, however;
      will fix that separately.)
      Nothing done yet about code that uses tuples retrieved by SearchSysCache
      for longer than is safe.
      a152ebee
  10. Jan 29, 2000
  11. Jan 27, 2000
    • Tom Lane's avatar
      Redesign DISTINCT ON as discussed in pgsql-sql 1/25/00: syntax is now · dd979f66
      Tom Lane authored
      SELECT DISTINCT ON (expr [, expr ...]) targetlist ...
      and there is a check to make sure that the user didn't specify an ORDER BY
      that's incompatible with the DISTINCT operation.
      Reimplement nodeUnique and nodeGroup to use the proper datatype-specific
      equality function for each column being compared --- they used to do
      bitwise comparisons or convert the data to text strings and strcmp().
      (To add insult to injury, they'd look up the conversion functions once
      for each tuple...)  Parse/plan representation of DISTINCT is now a list
      of SortClause nodes.
      initdb forced by querytree change...
      dd979f66
    • Tom Lane's avatar
      Remove duplicate extern declaration. · 91250f38
      Tom Lane authored
      91250f38
  12. Jan 26, 2000
    • Bruce Momjian's avatar
      Add: · 5c25d602
      Bruce Momjian authored
        * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
      
      to all files copyright Regents of Berkeley.  Man, that's a lot of files.
      5c25d602
    • Bruce Momjian's avatar
      as attache of this mail is patch (to the main tree) with to_char's · b866d2e2
      Bruce Momjian authored
      family functions. Contain:
      
        conversion from a datetype to formatted text:
      
      	to_char( datetime, 	text)
      	to_char( timestamp,	text)
      	to_char( int4,		text)
      	to_char( int8,		text)
      	to_char( float4,	text)
      	to_char( float8,	text)
      	to_char( numeric,	text)
      
        vice versa:
      
      	to_date		( text, text)
      	to_datetime	( text, text)
      	to_timestamp	( text, text)
      	to_number	( text, text)	   (convert to numeric)
      
      
        PostgreSQL to_char is very compatible with Oracle's to_char(), but not
      total exactly (now). Small differentions are in number formating. It will
      fix in next to_char() version.
      
      
      ! If will this patch aplly to the main tree, must be delete the current
        to_char version in contrib (directory "dateformat" and note in contrib's
        README), this patch not erase it (sorry Bruce).
      
      
      
      The patch patching files:
      
      	doc/src/sgml/func.sgml
                           ^^^^^^^^
         Hmm, I'm not sure if my English... :( Check it anyone (volunteer)?
      
         Thomas, it is right? SGML is not my primary lang  and compile
         the current PG docs tree is very happy job (hard variables setting in
         docs/sgml/Makefile --> HSTYLE= /home/users/t/thomas/....  :-)
      
         What add any definition to global configure.in and set Makefiles in docs
         tree via ./configure?
      
      	src/backend/utils/adt/Makefile
      	src/backend/utils/adt/formatting.c
      	src/include/catalog/pg_proc.h
      	src/include/utils/formatting.h
      Karel Zak <zakkr@zf.jcu.cz>              http://home.zf.jcu.cz/~zakkr/
      b866d2e2
  13. Jan 24, 2000
  14. Jan 23, 2000
  15. Jan 22, 2000
  16. Jan 20, 2000
  17. Jan 19, 2000
  18. Jan 18, 2000
  19. Jan 17, 2000
  20. Jan 16, 2000
Loading