Skip to content
Snippets Groups Projects
  1. Nov 17, 2011
    • Robert Haas's avatar
      Remove ancient downcasing code from procedural language operations. · 67dc4eed
      Robert Haas authored
      A very long time ago, language names were specified as literals rather
      than identifiers, so this code was added to do case-folding.  But that
      style has ben deprecated for many years so this isn't needed any more.
      Language names will still be downcased when specified as unquoted
      identifiers, but quoted identifiers or the old style using string
      literals will be left as-is.
      67dc4eed
  2. Aug 07, 2011
    • Peter Eisentraut's avatar
      Fix a whitespace issue with the man pages · 6ef24487
      Peter Eisentraut authored
      There is what may actually be a mistake in our markup.  The problem is
      in a situation like
      
      <para>
       <command>FOO</command> is ...
      
      there is strictly speaking a line break before "FOO".  In the HTML
      output, this does not appear to be a problem, but in the man page
      output, this shows up, so you get double blank lines at odd places.
      
      So far, we have attempted to work around this with an XSL hack, but
      that causes other problems, such as creating run-ins in places like
      
      <acronym>SQL</acronym> <command>COPY</command>
      
      So fix the problem properly by removing the extra whitespace.  I only
      fixed the problems that affect the man page output, not all the
      places.
      6ef24487
  3. Mar 05, 2011
  4. Sep 20, 2010
  5. May 30, 2010
  6. Apr 03, 2010
    • Peter Eisentraut's avatar
      Remove unnecessary xref endterm attributes and title ids · 6dcce398
      Peter Eisentraut authored
      The endterm attribute is mainly useful when the toolchain does not support
      automatic link target text generation for a particular situation.  In  the
      past, this was required by the man page tools for all reference page links,
      but that is no longer the case, and it now actually gets in the way of
      proper automatic link text generation.  The only remaining use cases are
      currently xrefs to refsects.
      6dcce398
  7. Feb 23, 2010
    • Tom Lane's avatar
      Add an OR REPLACE option to CREATE LANGUAGE. · 11b58470
      Tom Lane authored
      This operates in the same way as other CREATE OR REPLACE commands, ie,
      it replaces everything but the ownership and ACL lists of an existing
      entry, and requires the caller to have owner privileges for that entry.
      
      While modifying an existing language has some use in development scenarios,
      in typical usage all the "replaced" values come from pg_pltemplate so there
      will be no actual change in the language definition.  The reason for adding
      this is mainly to allow programs to ensure that a language exists without
      triggering an error if it already does exist.
      
      This commit just adds and documents the new option.  A followon patch
      will use it to clean up some unpleasant cases in pg_dump and pg_regress.
      11b58470
  8. Dec 19, 2009
  9. Oct 08, 2009
  10. Sep 23, 2009
    • Tom Lane's avatar
      Implement the DO statement to support execution of PL code without having · 9048b731
      Tom Lane authored
      to create a function for it.
      
      Procedural languages now have an additional entry point, namely a function
      to execute an inline code block.  This seemed a better design than trying
      to hide the transient-ness of the code from the PL.  As of this patch, only
      plpgsql has an inline handler, but probably people will soon write handlers
      for the other standard PLs.
      
      In passing, remove the long-dead LANCOMPILER option of CREATE LANGUAGE.
      
      Petr Jelinek
      9048b731
  11. Nov 14, 2008
  12. Mar 26, 2007
    • Tom Lane's avatar
      Allow non-superuser database owners to create procedural languages. · 55a7cf80
      Tom Lane authored
      A DBA is allowed to create a language in his database if it's marked
      "tmpldbacreate" in pg_pltemplate.  The factory default is that this is set
      for all standard trusted languages, but of course a superuser may adjust
      the settings.  In service of this, add the long-foreseen owner column to
      pg_language; renaming, dropping, and altering owner of a PL now follow
      normal ownership rules instead of being superuser-only.
      Jeremy Drake, with some editorialization by Tom Lane.
      55a7cf80
  13. Feb 01, 2007
    • Bruce Momjian's avatar
      Update reference documentation on may/can/might: · e81c138e
      Bruce Momjian authored
      Standard English uses "may", "can", and "might" in different ways:
      
              may - permission, "You may borrow my rake."
      
              can - ability, "I can lift that log."
      
              might - possibility, "It might rain today."
      
      Unfortunately, in conversational English, their use is often mixed, as
      in, "You may use this variable to do X", when in fact, "can" is a better
      choice.  Similarly, "It may crash" is better stated, "It might crash".
      e81c138e
  14. Sep 16, 2006
  15. Sep 08, 2005
  16. Sep 06, 2005
    • Tom Lane's avatar
      Implement a preliminary 'template' facility for procedural languages, · e0dedd05
      Tom Lane authored
      as per my recent proposal.  For now the template data is hard-wired in
      proclang.c --- this should be replaced later by a new shared system
      catalog, but we don't want to force initdb during 8.1 beta.  This change
      lets us cleanly load existing dump files even if they contain outright
      wrong information about a PL's support functions, such as a wrong path
      to the shared library or a missing validator function.  Also, we can
      revert the recent kluges to make pg_dump dump PL support functions that
      are stored in pg_catalog.
      While at it, I removed the code in pg_regress that replaced $libdir
      with a hardcoded path for temporary installations.  This is no longer
      needed given our support for relocatable installations.
      e0dedd05
  17. Jan 04, 2005
  18. Nov 29, 2003
    • PostgreSQL Daemon's avatar
      · 969685ad
      PostgreSQL Daemon authored
      $Header: -> $PostgreSQL Changes ...
      969685ad
  19. Sep 22, 2003
  20. Sep 13, 2003
  21. Sep 09, 2003
  22. Aug 31, 2003
  23. Jun 27, 2003
  24. Apr 22, 2003
  25. Mar 25, 2003
  26. Jan 19, 2003
    • Bruce Momjian's avatar
      This patch includes a lot of minor cleanups to the SGML documentation, · be2b660e
      Bruce Momjian authored
      including:
      
      - replacing all the appropriate usages of <citetitle>PostgreSQL
      ...</citetitle> with &cite-user;, &cite-admin;, and so on
      
      - fix an omission in the EXECUTE documentation
      
      - add some more text to the EXPLAIN documentation
      
      - improve the PL/PgSQL RETURN NEXT documentation (more work to do here)
      
      - minor markup fixes
      
      
      Neil Conway
      be2b660e
  27. Nov 22, 2002
  28. Sep 21, 2002
    • Tom Lane's avatar
      Provide an upgrade strategy for dump files containing functions declared · eb3adab5
      Tom Lane authored
      with OPAQUE.  CREATE LANGUAGE, CREATE TRIGGER, and CREATE TYPE will all
      accept references to functions declared with OPAQUE --- but they will
      issue a NOTICE, and will modify the function entries in pg_proc to have
      the preferred type-safe argument or result types instead of OPAQUE.
      Per recent pghackers discussions.
      eb3adab5
  29. Aug 22, 2002
  30. Jul 24, 2002
    • Peter Eisentraut's avatar
      Remove unused system table columns: · 739adf32
      Peter Eisentraut authored
      pg_language.lancompiler
      pg_operator.oprprec
      pg_operator.oprisleft
      pg_proc.proimplicit
      pg_proc.probyte_pct
      pg_proc.properbyte_cpu
      pg_proc.propercall_cpu
      pg_proc.prooutin_ratio
      pg_shadow.usetrace
      pg_type.typprtlen
      pg_type.typreceive
      pg_type.typsend
      
      Attempts to use the obsoleted attributes of pg_operator or pg_proc
      in the CREATE commands will be greeted by a warning.  For pg_type,
      there is no warning (yet) because pg_dump scripts still contain these
      attributes.
      
      Also remove new but already obsolete spellings
      isVolatile, isStable, isImmutable in WITH clause.  (Use new syntax
      instead.)
      739adf32
  31. Jun 20, 2002
  32. May 22, 2002
    • Peter Eisentraut's avatar
      Add optional "validator" function to languages that can validate the · d60f10b0
      Peter Eisentraut authored
      function body (and other properties) as a function in the language
      is created.  This generalizes ad hoc code that already existed for
      the built-in languages.
      
      The validation now happens after the pg_proc tuple of the new function
      is created, so it is possible to define recursive SQL functions.
      
      Add some regression test cases that cover bogus function definition
      attempts.
      d60f10b0
  33. May 18, 2002
  34. Apr 21, 2002
    • Thomas G. Lockhart's avatar
      Augment the date/time examples in the User's Guide to reflect the newer · c05f29e8
      Thomas G. Lockhart authored
       capabilities of specifying time zones as intervals per SQL9x.
      Put refentrytitle contents on the same line as the tag.
       Otherwise, leading whitespace is propagated into the product, which
       (at least) messes up the ToC layout.
      Remove (some) docinfo tags containing dates. Best to omit if the dates
       are not accurate; maybe use CVS dates instead or leave them out.
      c05f29e8
  35. Feb 19, 2002
  36. Dec 08, 2001
  37. Nov 18, 2001
  38. Oct 26, 2001
  39. Sep 06, 2001
  40. Sep 03, 2001
Loading