Skip to content
Snippets Groups Projects
  1. Jul 15, 2000
    • Peter Eisentraut's avatar
      Rename templates to match names in makefiles/Makefile.* and include/port. · 3eec6ee1
      Peter Eisentraut authored
      Read templates after compiler is detected. Convert all templates to real
      shell scripts. Rename bsd->openbsd, alpha->osf.
      3eec6ee1
    • Bruce Momjian's avatar
      This should be a slighly more complete patch for commands/command.c · 739a0566
      Bruce Momjian authored
      AlterTableAddConstraint.  The major changes from the last patch
      are that it should hopefully check for references to temp tables
      (not in the shadow case, but at defination time) from permanent tables in
      foreign keys and refuse them and that it doesn't allow the table(s)
      being constrained to be views (because those cases don't currently
      work).
      
      Stephan SzaboThis should be a slighly more complete patch for commands/command.c
      AlterTableAddConstraint.  The major changes from the last patch
      are that it should hopefully check for references to temp tables
      (not in the shadow case, but at defination time) from permanent tables in
      foreign keys and refuse them and that it doesn't allow the table(s)
      being constrained to be views (because those cases don't currently
      work).
      
      Stephan Szabo
      739a0566
    • Tom Lane's avatar
    • Tom Lane's avatar
    • Tom Lane's avatar
      Cleanup of code for creating index entries. Functional indexes with · 6bfe6403
      Tom Lane authored
      pass-by-ref data types --- eg, an index on lower(textfield) --- no longer
      leak memory during index creation or update.  Clean up a lot of redundant
      code ... did you know that copy, vacuum, truncate, reindex, extend index,
      and bootstrap each basically duplicated the main executor's logic for
      extracting information about an index and preparing index entries?
      Functional indexes should be a little faster now too, due to removal
      of repeated function lookups.
      CREATE INDEX 'opt_type' clause is deimplemented by these changes,
      but I haven't removed it from the parser yet (need to merge with
      Thomas' latest change set first).
      6bfe6403
  2. Jul 14, 2000
  3. Jul 13, 2000
  4. Jul 12, 2000
  5. Jul 11, 2000
    • Bruce Momjian's avatar
      Here is the patch with memory leak checker. This checker allow detect · 46fb9c29
      Bruce Momjian authored
      in-chunk leaks, overwrite-next-chunk leaks and overwrite block-freeptr leaks.
      
      A in-chunk leak --- if something overwrite space after wanted (via palloc()
      size, but it is still inside chunk. For example
      
              x = palloc(12);         /* create 16b chunk */
              memset(x, '#', 13);
      
      this leak is in the current source total invisible, because chunk is 16b and
      leak is in the "align space".
      
       For this feature I add data_size to StandardChunk, and all memory which go
      from AllocSetAlloc() is marked as 0x7F.
      
       The MemoryContextCheck() is compiled '#ifdef USE_ASSERT_CHECKING'.
      
      I add this checking to 'tcop/postgres.c' and is active after each backend
      query, but it is probably not sufficient, because some MemoryContext exist
      only during memory processing --- will good if someone who known where
      it is needful (Tom:-) add it for others contexts;
       A problem in the current source is that we have still some malloc()
      allocation that is not needful and this allocation is total invisible for
      all context routines. For example Dllist in backend (pretty dirty it is in
      catcache where values in Dllist are palloc-ed, but list is malloc-ed).
      --- and BTW. this Dllist design stand in the way for query cache :-)
      
       Tom, if you agree I start replace some mallocs.
      
       BTW. --- Tom, have you idea for across transaction presistent allocation for
                SQL functions? (like regex - now it is via malloc)
      
      
       I almost forget. I add one if() to AllocSetAlloc(), for 'size' that are
      greater than ALLOC_BIGCHUNK_LIMIT is not needful check AllocSetFreeIndex(),
      because 'fidx' is always 'ALLOCSET_NUM_FREELISTS - 1'. It a little brisk up
      allocation for very large chunks. Right?
      
                                                      Karel
      46fb9c29
    • Bruce Momjian's avatar
      Done. In backend/commands/define.c unused field is set to '-' for the · 0d32cdc3
      Bruce Momjian authored
      moment.
      
      A patch for CVS is attached, and I have amended my BLOB dumping version
      appropriately.
      
      Philip Warner
      0d32cdc3
    • Jan Wieck's avatar
      Some security checks that we've found an external value completely · 793704d7
      Jan Wieck authored
      when fetching toasted values.
      
      Jan
      793704d7
  6. Jul 10, 2000
  7. Jul 09, 2000
  8. Jul 08, 2000
Loading