Skip to content
Snippets Groups Projects
  1. Apr 18, 2014
    • Peter Eisentraut's avatar
      Create function prototype as part of PG_FUNCTION_INFO_V1 macro · e7128e8d
      Peter Eisentraut authored
      Because of gcc -Wmissing-prototypes, all functions in dynamically
      loadable modules must have a separate prototype declaration.  This is
      meant to detect global functions that are not declared in header files,
      but in cases where the function is called via dfmgr, this is redundant.
      Besides filling up space with boilerplate, this is a frequent source of
      compiler warnings in extension modules.
      
      We can fix that by creating the function prototype as part of the
      PG_FUNCTION_INFO_V1 macro, which such modules have to use anyway.  That
      makes the code of modules cleaner, because there is one less place where
      the entry points have to be listed, and creates an additional check that
      functions have the right prototype.
      
      Remove now redundant prototypes from contrib and other modules.
      e7128e8d
  2. Aug 27, 2011
  3. Sep 20, 2010
  4. Jun 11, 2009
  5. May 17, 2008
    • Andrew Dunstan's avatar
      Add $PostgreSQL$ markers to a lot of files that were missing them. · 53972b46
      Andrew Dunstan authored
      This particular batch was just for *.c and *.h file.
      
      The changes were made with the following 2 commands:
      
      find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o  \( -name '*.[ch]'  \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | while read file ; do head -n 1 < $file | grep -q '^/\*' && echo $file; done | xargs -l sed -i -e '1s/^\// /' -e '1i/*\n * $PostgreSQL:$ \n *'
      
      find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o  \( -name '*.[ch]'  \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | xargs -l sed -i -e '1i/*\n * $PostgreSQL:$ \n */'
      53972b46
  6. May 31, 2006
  7. Aug 29, 2004
  8. May 28, 2004
  9. Feb 19, 2003
  10. Sep 04, 2002
  11. Feb 22, 2002
    • Bruce Momjian's avatar
      · 60555bd4
      Bruce Momjian authored
      Please, apply attached patch of contrib/btree_gist to 7.2.1 and current
      cvs.
      The patch fixes memory leak during creation GiST index on timestamp
      column.
      
      Thank you.
      
      --
      Teodor Sigaev
      teodor@stack.net
      60555bd4
  12. Nov 05, 2001
  13. Oct 28, 2001
  14. Oct 25, 2001
  15. Aug 23, 2001
  16. Aug 22, 2001
Loading