summaryrefslogtreecommitdiff
path: root/doc/src
AgeCommit message (Collapse)Author
2004-05-14Improve documentation for SQLSTATE error codes, per recent thread onNeil Conway
-patches.
2004-05-10Promote row expressions to full-fledged citizens of the expression syntax,Tom Lane
rather than allowing them only in a few special cases as before. In particular you can now pass a ROW() construct to a function that accepts a rowtype parameter. Internal generation of RowExprs fixes a number of corner cases that used to not work very well, such as referencing the whole-row result of a JOIN or subquery. This represents a further step in the work I started a month or so back to make rowtype values into first-class citizens.
2004-05-10Fix typo.Neil Conway
2004-05-08Fix typo.Bruce Momjian
2004-05-06Erase MD5 user passwords when a user is renamed because the username isBruce Momjian
used as salt for the MD5 password.
2004-05-06Update todo/faq timestampsBruce Momjian
2004-05-05Fix a typo in the documentation.Neil Conway
2004-05-05ALTER TABLE rewrite. New cool stuff:Tom Lane
* ALTER ... ADD COLUMN with defaults and NOT NULL constraints works per SQL spec. A default is implemented by rewriting the table with the new value stored in each row. * ALTER COLUMN TYPE. You can change a column's datatype to anything you want, so long as you can specify how to convert the old value. Rewrites the table. (Possible future improvement: optimize no-op conversions such as varchar(N) to varchar(N+1).) * Multiple ALTER actions in a single ALTER TABLE command. You can perform any number of column additions, type changes, and constraint additions with only one pass over the table contents. Basic documentation provided in ALTER TABLE ref page, but some more docs work is needed. Original patch from Rod Taylor, additional work from Tom Lane.
2004-05-03Fix obscure typo in 7.4.0 release notes.Neil Conway
2004-05-01Update Japanese FAQ.Bruce Momjian
Jun Kuwamura
2004-04-29Minor copy-editing.Tom Lane
2004-04-24Fix typo in libpq docs.Neil Conway
2004-04-24Document that PQoidValue(), PQcmdTuples(), and PQoidStatus() now workNeil Conway
when the command that generated the PGresult was an EXECUTE of an appropriate prepared statement.
2004-04-24Add mention to run thread test program if user is experiencing problemsBruce Momjian
with threaded applications.
2004-04-23Add ceiling() as an alias for ceil(), and power() as an alias for pow().Neil Conway
Regression tests and documentation have both been updated. SQL2003 requires that both ceiling() and ceil() be present, so I have documented both spellings. SQL2003 doesn't mention pow() as far as I can see, so I decided to replace pow() with power() in the documentation: there is little reason to encourage the continued usage of a function that isn't compliant with the standard, given a standard-compliant alternative. RELEASE NOTES: should state that pow() is considered deprecated (although I don't see the need to ever remove it.)
2004-04-22Make psql's \d+ command indicate whether the table in questionNeil Conway
contains OIDs. Also, minor documentation improvements to the psql reference page.
2004-04-22Fix filename mention in psqlrc.sample file.Bruce Momjian
2004-04-22Put information about tag in Outputs section, where it belongs.Tom Lane
2004-04-22Fix typoPeter Eisentraut
2004-04-22Improvements to the backup & restore documentation.Neil Conway
2004-04-22Update EXECUTE docs to mention tag matches prepared statement.Bruce Momjian
Update log_statement to more clearly state it doesn't filter based on the statement type of the prepared statement.
2004-04-22Add global psql config file, psql.rc.sample.Bruce Momjian
2004-04-21Minor improvement to CREATE AGGREGATE docs: add an xref to the docs forNeil Conway
builtin aggregate functions.
2004-04-21New link for Solaris IPC articlePeter Eisentraut
2004-04-21Change COPY CSV keyword to be:Bruce Momjian
FORCE QUOTE to force quotes FORCE NOT NULL to quote null input values
2004-04-20Add doc mention that:Bruce Momjian
process directly. Some parameters can only be set at server start; any changes to their entries in the configuration file will be ignored until the server is restarted.
2004-04-20Improve IS NULL partial index wording.Bruce Momjian
2004-04-20Document partial indexes for IS NULL lookups.Bruce Momjian
2004-04-20Remove additional tcl doc mention.Bruce Momjian
2004-04-20Remove TCL docs.Bruce Momjian
2004-04-20> >> My question is whether postgres can index null values, and if not, do IBruce Momjian
> >> have to accept a full table scan when locating records. > > > > It indexes them, but "is null" is not an indexable operator, so you > > can't directly solve the above with a 3-column index. What you can do > > instead is use a partial index, for instance > > > > create index i on CUSTOMER.WCCustOrderStatusLog (WCOrderStatusID) > > where Acknowledged is null and Processing is null; > > That's a very nifty trick and exactly the sort of answer I was after! Add CREATE INDEX doc mention of using partial indexes for IS NULL indexing; idea from Tom.
2004-04-19In reading the 7.4.2 docs, the sql reference page for PREPARE doesn'tBruce Momjian
reference DEALLOCATE in any way. It points to EXECUTE, but not to DEALLOCATE. Suggested fix: ... This also means that a single prepared statement cannot be used by multiple simultaneous database clients; however, each client can create their own prepared statement to use. The prepared statement can be manually cleaned up using the DEALLOCATE command. James Robinson
2004-04-19Complete TODO item:Bruce Momjian
o -Allow dump/load of CSV format This adds new keywords to COPY and \copy: CSV - enable CSV mode (comma separated variable) QUOTE - specify quote character ESCAPE - specify escape character FORCE - force quoting of specified column LITERAL - suppress null comparison for columns Doc changes included. Regression updates coming from Andrew.
2004-04-15Clarify meaning of second DateStyle value.Bruce Momjian
2004-04-12Change psql \copy stdin/stdout to read from command input/output.Bruce Momjian
Add pstdin/pstdout to read from psql's stdin/stdout. BACKWARD INCOMPATIBLE CHANGE
2004-04-12> > This update fixes a few small typos in names,Bruce Momjian
> > pronouns and formatting in the Russian FAQ. Serguei Mokhov
2004-04-10Please find a small patch to fix the brain damage "century" andBruce Momjian
"millennium" date part implementation in postgresql, both in the code and the documentation, so that it conforms to the official definition. If you do not agree with the official definition, please send your complaint to "pope@vatican.org". I'm not responsible for them;-) With the previous version, the centuries and millenniums had a wrong number and started the wrong year. Moreover century number 0, which does not exist in reality, lasted 200 years. Also, millennium number 0 lasted 2000 years. If you want postgresql to have it's own definition of "century" and "millennium" that does not conform to the one of the society, just give them another name. I would suggest "pgCENTURY" and "pgMILLENNIUM";-) IMO, if someone may use the options, it means that postgresql is used for historical data, so it make sense to have an historical definition. Also, I just want to divide the year by 100 or 1000, I can do that quite easily. BACKWARD INCOMPATIBLE CHANGE Fabien Coelho - coelho@cri.ensmp.fr
2004-04-09Remove libpgeasy and odbc doc reference in filelist.sgml --- removed toBruce Momjian
gborg.
2004-04-07Add SQL 2003 standards.Bruce Momjian
2004-04-07Remove bad URL.Bruce Momjian
2004-04-07Update FAQ_DEV.Bruce Momjian
2004-04-07> >>1. change the type of "log_statement" option from boolean to string,Bruce Momjian
> >>with allowed values of "all, mod, ddl, none" with default "none". OK, here is a patch that implements #1. Here is sample output: test=> set client_min_messages = 'log'; SET test=> set log_statement = 'mod'; SET test=> select 1; ?column? ---------- 1 (1 row) test=> update test set x=1; LOG: statement: update test set x=1; ERROR: relation "test" does not exist test=> update test set x=1; LOG: statement: update test set x=1; ERROR: relation "test" does not exist test=> copy test from '/tmp/x'; LOG: statement: copy test from '/tmp/x'; ERROR: relation "test" does not exist test=> copy test to '/tmp/x'; ERROR: relation "test" does not exist test=> prepare xx as select 1; PREPARE test=> prepare xx as update x set y=1; LOG: statement: prepare xx as update x set y=1; ERROR: relation "x" does not exist test=> explain analyze select 1;; QUERY PLAN ------------------------------------------------------------------------------------ Result (cost=0.00..0.01 rows=1 width=0) (actual time=0.006..0.007 rows=1 loops=1) Total runtime: 0.046 ms (2 rows) test=> explain analyze update test set x=1; LOG: statement: explain analyze update test set x=1; ERROR: relation "test" does not exist test=> explain update test set x=1; ERROR: relation "test" does not exist It checks PREPARE and EXECUTE ANALYZE too. The log_statement values are 'none', 'mod', 'ddl', and 'all'. For 'all', it prints before the query is parsed, and for ddl/mod, it does it right after parsing using the node tag (or command tag for CREATE/ALTER/DROP), so any non-parse errors will print after the log line.
2004-04-05Remove 'syslog' GUC variable, and add more logical 'log_destination'Bruce Momjian
variable to control logoutput location on Unix and Win32. Magnus Hagander
2004-04-01Replace TupleTableSlot convention for whole-row variables and functionTom Lane
results with tuples as ordinary varlena Datums. This commit does not in itself do much for us, except eliminate the horrid memory leak associated with evaluation of whole-row variables. However, it lays the groundwork for allowing composite types as table columns, and perhaps some other useful features as well. Per my proposal of a few days ago.
2004-03-31Add description of log_statement_stats's function (total statement statsBruce Momjian
rather than per-stage stats).
2004-03-31Back out tutorial changes:Bruce Momjian
--------------------------------------------------------------------------- 1. In keeping with the recent discussion that there should be more said about views, stored procedures, and triggers, in the tutorial, I have added a bit of verbiage to that end. 2. Some formatting changes to the datetime discussion, as well as addition of a citation of a relevant book on calendars. Christopher Browne
2004-03-30Fix markup errors from recent patch.Bruce Momjian
2004-03-301. In keeping with the recent discussion that there should be moreBruce Momjian
said about views, stored procedures, and triggers, in the tutorial, I have added a bit of verbiage to that end. 2. Some formatting changes to the datetime discussion, as well as addition of a citation of a relevant book on calendars. Christopher Browne
2004-03-30Add mention of how to use \df to find functions using/returning specificBruce Momjian
data types.
2004-03-30Fix to_char for 1 BC. Previously it returned 1 AD.Bruce Momjian
Fix to_char(year) for BC dates. Previously it returned one less than the current year. Add documentation mentioning that there is no 0 AD.