1. 11 7月, 2000 2 次提交
    • B
      Here is the patch with memory leak checker. This checker allow detect · 46fb9c29
      Bruce Momjian 提交于
      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
    • J
      Some security checks that we've found an external value completely · 793704d7
      Jan Wieck 提交于
      when fetching toasted values.
      
      Jan
      793704d7
  2. 10 7月, 2000 2 次提交
  3. 09 7月, 2000 5 次提交
    • P
      typo · f9077123
      Peter Eisentraut 提交于
      f9077123
    • P
      Fix sed invocation, from Keith Parks · a7466534
      Peter Eisentraut 提交于
      a7466534
    • P
      Another round of those unportable config/build changes :-/ · 74618e2b
      Peter Eisentraut 提交于
      * Add option to build with OpenSSL out of the box. Fix thusly exposed
        bit rot. Although it compiles now, getting this to do something
        useful is left as an exercise.
      
      * Fix Kerberos options to defer checking for required libraries until
        all the other libraries are checked for.
      
      * Change default odbcinst.ini and krb5.srvtab path to PREFIX/etc.
      
      * Install work around for Autoconf's install-sh relative path anomaly.
        Get rid of old INSTL_*_OPTS variables, now that we don't need them
        anymore.
      
      * Use `gunzip -c' instead of g?zcat. Reportedly broke on AIX.
      
      * Look for only one of readline.h or readline/readline.h, not both.
      
      * Make check for PS_STRINGS cacheable. Don't test for the header files
        separately.
      
      * Disable fcntl(F_SETLK) test on Linux.
      
      * Substitute the standard GCC warnings set into CFLAGS in configure,
        don't add it on in Makefile.global.
      
      * Sweep through contrib tree to teach makefiles standard semantics.
      
      ... and in completely unrelated news:
      
      * Make postmaster.opts arbitrary options-aware. I still think we need to
        save the environment as well.
      74618e2b
    • T
      Make view/rule permission checking behave properly with · b59c03f8
      Tom Lane 提交于
      subqueries in the rule.
      b59c03f8
    • T
      Fix bogus DatumGetInt32 coercion. · 7c578904
      Tom Lane 提交于
      7c578904
  4. 08 7月, 2000 6 次提交
  5. 07 7月, 2000 4 次提交
  6. 06 7月, 2000 4 次提交
  7. 05 7月, 2000 6 次提交
  8. 04 7月, 2000 9 次提交
  9. 03 7月, 2000 2 次提交