summaryrefslogtreecommitdiff
path: root/doc/src/sgml/ref
AgeCommit message (Collapse)Author
2006-01-18Add a new system view, pg_cursors, that displays the currently availableNeil Conway
cursors. Patch from Joachim Wieland, review and ediorialization by Neil Conway. The view lists cursors defined by DECLARE CURSOR, using SPI, or via the Bind message of the frontend/backend protocol. This means the view does not list the unnamed portal or the portal created to implement EXECUTE. Because we do list SPI portals, there might be more rows in this view than you might expect if you are using SPI implicitly (e.g. via a procedural language). Per recent discussion on -hackers, the query string included in the view for cursors defined by DECLARE CURSOR is based on debug_query_string. That means it is not accurate if multiple queries separated by semicolons are submitted as one query string. However, there doesn't seem a trivial fix for that: debug_query_string is better than nothing. I also changed SPI_cursor_open() to include the source text for the portal it creates: AFAICS there is no reason not to do this. Update the documentation and regression tests, bump the catversion.
2006-01-16Improve constraint_name wording.Bruce Momjian
2006-01-16Add markup for new constraint_name mention.Bruce Momjian
2006-01-16Add documentaiotn mention that constraint names can be sentences thatBruce Momjian
can convey information to clients on constraint violation.
2006-01-15Allow the types of parameters to PREPARE to be inferred. If a parameter'sNeil Conway
data type is unspecified or is declared to be "unknown", the type will be inferred from the context in which the parameter is used. This was already possible for protocol-level prepared statements.
2006-01-13Document that CREATE OPERATOR CLASS amounts to granting public executeTom Lane
permissions on the functions and operators contained in the opclass. Since we already require superuser privilege to create an operator class, there's no expansion-of-privilege hazard here, but if someone were to get the idea of building an opclass containing functions that need security restrictions, we'd better warn them off. Also, change the permission checks from have-execute-privilege to have-ownership, and then comment them all out since they're dead code anyway under the superuser restriction.
2006-01-13Require the issuer of CREATE TYPE to own the functions mentioned in theTom Lane
type definition. Because use of a type's I/O conversion functions isn't access-checked, CREATE TYPE amounts to granting public execute permissions on the functions, and so allowing it to anybody means that someone could theoretically gain access to a function he's not supposed to be able to execute. The parameter-type restrictions already enforced by CREATE TYPE make it fairly unlikely that this oversight is meaningful in practice, but still it seems like a good idea to plug the hole going forward. Also, document the implicit grant just in case anybody gets the idea of building I/O functions that might need security restrictions.
2006-01-11Documentation tweak: add spaces around the brackets in the descriptionNeil Conway
of the CREATE CONVERSION syntax, for consistency with the other SQL reference pages.
2006-01-08Add a new system view, pg_prepared_statements, that can be used toNeil Conway
access information about the prepared statements that are available in the current session. Original patch from Joachim Wieland, various improvements by Neil Conway. The "statement" column of the view contains the literal query string sent by the client, without any rewriting or pretty printing. This means that prepared statements created via SQL will be prefixed with "PREPARE ... AS ", whereas those prepared via the FE/BE protocol will not. That is unfortunate, but discussion on -patches did not yield an efficient way to improve this, and there is some merit in returning exactly what the client sent to the backend. Catalog version bumped, regression tests updated.
2006-01-06Fix broken markup.Tom Lane
2006-01-05Make all command-line options of postmaster and postgres the same. SeePeter Eisentraut
http://archives.postgresql.org/pgsql-hackers/2006-01/msg00151.php for the complete plan.
2005-12-28Update COPY CSV \. wording for externally created files.Bruce Momjian
2005-12-28Add regression tests for CSV and \., and add automatic quoting of aBruce Momjian
single column dump that has a \. value, so the load works properly. I also added documentation describing this issue.
2005-12-25Minor doc tweak: "NOT NULL" is redundant with "SERIAL" in example.Neil Conway
2005-12-23Allow CREATE/ALTER ROLE PASSWORD NULL to allow restoring the default statePeter Eisentraut
of having no password.
2005-12-20Fix broken markup.Tom Lane
2005-12-18Add new psql command \password for changing role password with client-sidePeter Eisentraut
password encryption. Also alter createuser command to the same effect.
2005-12-09Add documentation about the behavior of BEFORE triggers and referentialBruce Momjian
integrity actions. Stephan Szabo
2005-12-09Remove mention that history is _now_ automatically saved on exit. ItBruce Momjian
has been that way for a long time.
2005-12-08there's a paragraph in the ALTER TABLE reference page that reads:Bruce Momjian
DROP CONSTRAINT This form drops constraints on a table. Currently, constraints on tables are not required to have unique names, so there may be more than one constraint matching the specified name. All matching constraints will be dropped. To my knowledge, it is no longer possible to create constraints with the same name for the same relation. When you create a constraint and specify the same name explictly, an error is raised. Implicit constraint creation won't choose an existing name either and up to now you could not rename a constraint. Renaming works with the patch I sent in a few hours ago but this patch as well won't allow constraints with identical names on the same relation. The attached patch thus removes the note in the docs. Joachim Wieland
2005-12-02Fix obsolete description of -h option, per Andreas Schmidt.Tom Lane
2005-11-22 DROP DATABASE IF EXISTS variantAndrew Dunstan
2005-11-21Implement DROP OWNED and REASSIGN OWNED. These new commands facilitate theAlvaro Herrera
process of dropping roles by dropping objects owned by them and privileges granted to them, or giving the owned objects to someone else, through the use of the data stored in the new pg_shdepend catalog. Some refactoring of the GRANT/REVOKE code was needed, as well as ALTER OWNER code. Further cleanup of code duplication in the GRANT code seems necessary. Implemented by me after an idea from Tom Lane, who also provided various kind of implementation advice. Regression tests pass. Some tests for the new functionality are also added, as well as rudimentary documentation.
2005-11-19DROP objecttype IF EXISTS for the following objects:Andrew Dunstan
table view index sequence schema type domain conversion
2005-11-17Make SQL arrays support null elements. This commit fixes the core arrayTom Lane
functionality, but I still need to make another pass looking at places that incidentally use arrays (such as ACL manipulation) to make sure they are null-safe. Contrib needs work too. I have not changed the behaviors that are still under discussion about array comparison and what to do with lower bounds.
2005-11-07R-tree is dead ... long live GiST.Tom Lane
2005-11-04Spellchecking run, final cleanupsPeter Eisentraut
2005-11-03Some minor improvements to the CE docs. Also fix a bit of SGML markupNeil Conway
elsewhere.
2005-11-01Make an editorial pass over the reference pages.Tom Lane
2005-10-31Mention in the docs that temporary/non-temp tables can not shareBruce Momjian
referential integrity relationships.
2005-10-30Fix psql ref typo.Bruce Momjian
Andreas Seltenreich
2005-10-28Remove mention that \x doesn't affect backslash commands.Bruce Momjian
2005-10-20Document the behavior of GRANT/REVOKE in cases where the privilege isTom Lane
held by means of role membership, rather than directly. Per discussion and bug fix of a couple weeks ago.
2005-10-15Fix assorted typos in the documentation, and use American spellingNeil Conway
rather than British. Patch from Michael Fuhr.
2005-10-15Merge some user-submitted suggestions for improvement into theNeil Conway
documentation. Mostly add some <xref>s, fix a few typos, and document that zlib is required in the installation docs.
2005-10-13Improve documentation about CREATEROLE privilege.Tom Lane
2005-10-13Update documentation to reflect the new ALTER OWNER rules for allTom Lane
affected types of objects.
2005-10-13Fix capitalization of example.Bruce Momjian
2005-10-13Remove extra <para>Bruce Momjian
2005-10-12Fix spelling error, per Michael Fuhr.Tom Lane
2005-10-10Remove the DELETEs from pg_shadow and pg_group that pg_dumpall used toTom Lane
emit when given the --clean option, in favor of individual DROP ROLE commands. The old technique could not possibly work in 8.1, and was never a very good idea anyway IMHO. The DROP ROLE approach has the defect that the DROPs will fail for roles that own objects or have privileges, but perhaps we can improve that later.
2005-10-04Clean up some messages and fix missing translation support. Option --logPeter Eisentraut
renamed to --log-file for clarity.
2005-09-30Change the option spelling to --connection-limit to be consistent with thePeter Eisentraut
SQL option spelling.
2005-09-27Fix problems with PGXS builds against an installation tree that wasTom Lane
relocated after installation. We can't trust the installation paths inserted into Makefile.global by configure, so instead we must get the paths from pg_config. This requires extending pg_config to support all the separately-configurable path names, but that was on TODO anyway.
2005-09-23Attached patch takes a swing at improving the autovacuum wording inBruce Momjian
maintenance.sgml. Robert Treat [ Also fix create domain markup.]
2005-09-22Add warning about DOMAINs.Bruce Momjian
David Fetter
2005-09-13Minor SGML markup fixes.Neil Conway
2005-09-12Forgot to add pg_pltemplate to the list of shared system catalogs thatTom Lane
appears in the REINDEX ref page.
2005-09-08Create the pg_pltemplate system catalog to hold template informationTom Lane
for procedural languages. This replaces the hard-wired table I had originally proposed as a stopgap solution. For the moment, the initial contents only include languages shipped with the core distribution.
2005-09-05Implement a preliminary 'template' facility for procedural languages,Tom Lane
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.