summaryrefslogtreecommitdiff
path: root/doc/src/sgml/plpython.sgml
AgeCommit message (Collapse)Author
2011-04-08Avoid extra whitespace in the arguments of <indexterm>.Tom Lane
As noted by Thom Brown, this confuses the DocBook index processor; it fails to merge entries that differ only in whitespace, and sorts them unexpectedly as well. Seems like a toolchain bug, but I'm not going to hold my breath waiting for a fix. Note: easiest way to find these is to look for double spaces in HTML.index.
2011-03-22Cosmetic capitalization fixPeter Eisentraut
2011-03-05Make plpythonu language use plpython2 shared library directly.Tom Lane
The original scheme for this was to symlink plpython.$DLSUFFIX to plpython2.$DLSUFFIX, but that doesn't work on Windows, and only accidentally failed to fail because of the way that CREATE LANGUAGE created or didn't create new C functions. My changes of yesterday exposed the weakness of that approach. To fix, get rid of the symlink and make pg_pltemplate show what's really going on.
2011-03-05Update documentation to reflect that standard PLs are now extensions.Tom Lane
Recommend use of CREATE EXTENSION rather than plain CREATE LANGUAGE where relevant. Encourage PL authors to provide extension wrappers for their PLs.
2011-02-28PL/Python custom SPI exceptionsPeter Eisentraut
This provides a separate exception class for each error code that the backend defines, as well as the ability to get the SQLSTATE from the exception object. Jan Urbański, reviewed by Steve Singer
2011-02-27PL/Python explicit subtransactionsPeter Eisentraut
Adds a context manager, obtainable by plpy.subtransaction(), to run a group of statements in a subtransaction. Jan Urbański, reviewed by Steve Singer, additional scribbling by me
2011-02-26Table function support for PL/PythonPeter Eisentraut
This allows functions with multiple OUT parameters returning both one or multiple records (RECORD or SETOF RECORD). Jan Urbański, reviewed by Hitoshi Harada
2011-02-22Add PL/Python functions for quoting stringsPeter Eisentraut
Add functions plpy.quote_ident, plpy.quote_literal, plpy.quote_nullable, which wrap the equivalent SQL functions. To be able to propagate char * constness properly, make the argument of quote_literal_cstr() const char *. This also makes it more consistent with quote_identifier(). Jan Urbański, reviewed by Hitoshi Harada, some refinements by Peter Eisentraut
2011-02-02Wrap PL/Python SPI calls into subtransactionsPeter Eisentraut
This allows the language-specific try/catch construct to catch and handle exceptions arising from SPI calls, matching the behavior of other PLs. As an additional bonus you no longer get all the ugly "unrecognized error in PLy_spi_execute_query" errors. Jan Urbański, reviewed by Steve Singer
2011-02-01Properly capitalize hyphenated words in documentation titles.Bruce Momjian
2010-11-09plpython has plpy.Error instead of plpy.ERRORAlvaro Herrera
Author: Marti Raudsepp <marti@juffo.org>
2010-10-10Support triggers on views.Tom Lane
This patch adds the SQL-standard concept of an INSTEAD OF trigger, which is fired instead of performing a physical insert/update/delete. The trigger function is passed the entire old and/or new rows of the view, and must figure out what to do to the underlying tables to implement the update. So this feature can be used to implement updatable views using trigger programming style rather than rule hacking. In passing, this patch corrects the names of some columns in the information_schema.triggers view. It seems the SQL committee renamed them somewhere between SQL:99 and SQL:2003. Dean Rasheed, reviewed by Bernd Helmle; some additional hacking by me.
2010-09-20Remove cvs keywords from all files.Magnus Hagander
2010-09-08Add tip about building plpython 2 and 3. Fix link to Python docs.Peter Eisentraut
2010-08-05Document which Python environment variables affect PL/PythonPeter Eisentraut
2010-07-08Install safeguard against running PL/Python 2 and 3 in the same sessionPeter Eisentraut
2010-07-06Add note that using PL/Python 2 and 3 in the same session will probably crashPeter Eisentraut
2010-03-29Add some information about what it means for PL/Python to be untrusted.Peter Eisentraut
Similar information already appears in the PL/Perl and PL/Tcl chapters.
2010-03-29Add some documentation about PL/Python limitationsPeter Eisentraut
suggested by Steve White (bug #5272)
2010-03-21Add more 9.0 release note documentation links.Bruce Momjian
2010-03-18Prevent the injection of invalidly encoded strings by PL/Python into PostgreSQLPeter Eisentraut
with a few strategically placed pg_verifymbstr calls.
2010-03-13Add some more structure and bits of information to PL/Python documentationPeter Eisentraut
2010-01-22PL/Python DO handlerPeter Eisentraut
Also cleaned up some redundancies between the primary error messages and the error context in PL/Python. Hannu Valtonen
2009-12-19Add documentation why reassigning PL/Python function parameters in thePeter Eisentraut
function body can have undesirable outcomes. (bug #5232)
2009-12-15Python 3 support in PL/PythonPeter Eisentraut
Behaves more or less unchanged compared to Python 2, but the new language variant is called plpython3u. Documentation describing the naming scheme is included.
2009-12-10PL/Python array supportPeter Eisentraut
Support arrays as parameters and return values of PL/Python functions.
2009-03-30Update URL to Python bug tracker. Backpatch to 8.3; doesn't seem worthy ofAlvaro Herrera
further backpatch.
2008-03-28Support statement-level ON TRUNCATE triggers. Simon RiggsTom Lane
2007-02-01Consistenly use colons before '<programlisting>' blocks, whereBruce Momjian
appropriate.
2007-01-31Update documentation on may/can/might:Bruce Momjian
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". Also update two error messages mentioned in the documenation to match.
2006-10-23Spellchecking and suchPeter Eisentraut
2006-10-21Editorial improvements for recent plpython doc updates.Tom Lane
2006-10-16Remove use of '<' and '>' in SGML, use '&' escapes.Bruce Momjian
Update find_gt_lt to allow grep parameters to be passed into it.
2006-09-03Remove duplicated index entry.Tom Lane
2006-09-03Fix broken markup.Tom Lane
2006-09-02Allow PL/python to return composite types and result setsBruce Momjian
Sven Suursoho
2006-05-26Add table_name and table_schema to plpython trigger data, plus docs and ↵Andrew Dunstan
regression test.
2005-05-20Add some links to the CREATE FUNCTION reference page when describingNeil Conway
function definition for particular PLs. Original patch from David Fetter, editorializing by Neil Conway.
2005-04-09We don't put URL's in ulink's because the URL is always generated, butBruce Momjian
we can put words in ulink and the URL will still be printed. per Peter
2005-03-31Adjust SGML ulink tags to the URL is always displayed in our printed docs.Bruce Momjian
2004-12-30More minor updates and copy-editing.Tom Lane
2004-12-17Hook up the plpython result-object nrows and status methods correctly.Tom Lane
Adjust documentation to match current reality.
2004-09-13Redesign query-snapshot timing so that volatile functions in READ COMMITTEDTom Lane
mode see a fresh snapshot for each command in the function, rather than using the latest interactive command's snapshot. Also, suppress fresh snapshots as well as CommandCounterIncrement inside STABLE and IMMUTABLE functions, instead using the snapshot taken for the most closely nested regular query. (This behavior is only sane for read-only functions, so the patch also enforces that such functions contain only SELECT commands.) As per my proposal of 6-Sep-2004; I note that I floated essentially the same proposal on 19-Jun-2002, but that discussion tailed off without any action. Since 8.0 seems like the right place to be taking possibly nontrivial backwards compatibility hits, let's get it done now.
2004-05-16Add documentation for the new "dollar quoting" feature, and update existingNeil Conway
examples to use dollar quoting when appropriate. Original patch from David Fetter, additional work and editorializing by Neil Conway.
2003-11-29$Header: -> $PostgreSQL Changes ...PostgreSQL Daemon
2003-11-12Documentation cleanupPeter Eisentraut
2003-09-12Update obsolete examples of error messages; various other minor editing.Tom Lane
2003-08-31Add/edit index entries.Peter Eisentraut
2003-07-01Fix documentation comment about restricted environments, per Kevin Jacobs.Tom Lane
2003-06-30Rename plpython to plpythonu, and update documentation to reflect itsTom Lane
now-untrusted status.