Bruce Momjian
32cebaecff
Remove emacs info from footer of SGML files.
2006-09-16 00:30:20 +00:00
Tom Lane
091fe03775
Code review for UPDATE SET (columnlist) patch. Make it handle as much
...
of the syntax as this fundamentally dead-end approach can, in particular
combinations of single and multi column assignments. Improve rather
inadequate documentation and provide some regression tests.
2006-09-03 22:37:06 +00:00
Bruce Momjian
6e8596a146
Add UPDATE tab SET ROW (col, ...) = (val, ...) for updating
...
multiple columns
Susanne Ebrecht
2006-09-02 20:34:47 +00:00
Tom Lane
7a3e30e608
Add INSERT/UPDATE/DELETE RETURNING, with basic docs and regression tests.
...
plpgsql support to come later. Along the way, convert execMain's
SELECT INTO support into a DestReceiver, in order to eliminate some ugly
special cases.
Jonah Harris and Tom Lane
2006-08-12 02:52:06 +00:00
Tom Lane
66fc528d99
Remove somebody's flight of fancy about an UPDATE with ORDER BY and LIMIT.
2006-03-08 22:59:09 +00:00
Tom Lane
16c5a471a3
Improve note about not using the target table name in the SET clause.
...
It's not related to whether an alias is used or not.
2006-01-22 20:34:11 +00:00
Neil Conway
1d763d9107
Allow an optional alias for the target table to be specified for UPDATE
...
and DELETE. If specified, the alias must be used instead of the full
table name. Also, the alias currently cannot be used in the SET clause
of UPDATE.
Patch from Atsushi Ogawa, various editorialization by Neil Conway.
Along the way, make the rowtypes regression test pass if add_missing_from
is enabled, and add a new (skeletal) regression test for DELETE.
2006-01-22 05:20:35 +00:00
Bruce Momjian
cd5d464e9f
Doc patch that adds an example of a correllated UPDATE.
...
David Fetter
2006-01-19 23:09:42 +00:00
Tom Lane
23e2f9ebf7
Fix spelling error, per Michael Fuhr.
2005-10-12 23:19:22 +00:00
Tom Lane
b548cde1f5
Some more small improvements in response to 7.4 interactive docs comments.
2005-01-09 05:57:45 +00:00
Tom Lane
cc093bc3ad
More minor updates and copy-editing.
2005-01-04 03:58:16 +00:00
Bruce Momjian
ff8d68df5c
Included is an example of using savepoints in a non-trivial example.
...
Giving examples in the SQL command reference is hard because we don't
have conditionals at the SQL level.
Gavin Sherry
2004-08-08 01:48:31 +00:00
Tom Lane
7e64dbc6b5
Support assignment to subfields of composite columns in UPDATE and INSERT.
...
As a side effect, cause subscripts in INSERT targetlists to do something
more or less sensible; previously we evaluated such subscripts and then
effectively ignored them. Another side effect is that UPDATE-ing an
element or slice of an array value that is NULL now produces a non-null
result, namely an array containing just the assigned-to positions.
2004-06-09 19:08:20 +00:00
Neil Conway
c934cf1e96
Add a few more cross-references where appropriate, add more text about
...
the FROM clause and an example to the UPDATE reference page, and make
a few other SGML tweaks.
2004-03-03 22:22:24 +00:00
PostgreSQL Daemon
969685ad44
$Header: -> $PostgreSQL Changes ...
2003-11-29 19:52:15 +00:00
Tom Lane
e90b841915
More cleanup of Diagnostics sections.
2003-09-12 00:12:47 +00:00
Bruce Momjian
2a5b6a7c9b
This patch fixes a few missed GUC variables that were still upper case,
...
makes a few more small improvements to runtime.sgml, and makes some SGML
conventions more consistent.
Neil Conway
2003-09-11 21:42:20 +00:00
Peter Eisentraut
c326d8f4f2
Add/edit index entries.
2003-08-31 17:32:24 +00:00
Tom Lane
455891bf96
Code review for UPDATE tab SET col = DEFAULT patch ... whack it around
...
so it has some chance of working in rules ...
2003-07-03 16:34:26 +00:00
Bruce Momjian
53c4f1233f
UPDATE ... SET <col> = DEFAULT
...
Rod Taylor
2003-06-25 04:19:24 +00:00
Peter Eisentraut
20aae3047f
Editing of more reference pages.
2003-04-26 23:56:51 +00:00
Bruce Momjian
88bd306832
> Neil Conway <nconway@klamath.dyndns.org> writes:
...
> > This patch improves the documentation of the UPDATE and ALTER TABLE
> > commands to elaborate on the effect of specifying an "ONLY" clause.
>
> Unfortunately this is still only half the truth ... see the
> SQL_INHERITANCE configuration variable.
Okay, I've attached an updated patch with more information on
SQL_INHERITANCE and inheritance behavior in prior releases.
Neil Conway
2002-08-15 02:59:18 +00:00
Tom Lane
0c1fe3d2b9
Update SQL-command reference pages for schema features.
2002-04-23 02:07:16 +00:00
Thomas G. Lockhart
03a321d214
Use PostgreSQL consistantly throughout docs. Before, usage was split evenly
...
between Postgres and PostgreSQL.
2001-12-08 03:24:40 +00:00
Peter Eisentraut
351a0c1736
Replace ASCII-quotes with proper markup.
2001-09-13 15:55:24 +00:00
Peter Eisentraut
89a1ea4207
Put some kind of grammatical uniformity in the <refpurpose> lines.
2001-09-03 12:57:50 +00:00
Peter Eisentraut
96147a6d1c
Make UPDATE and DELETE privileges distinct. Add REFERENCES and TRIGGER
...
privileges. INSERT and COPY FROM now require INSERT (only). Add
privileges regression test.
2001-05-27 09:59:30 +00:00
Peter Eisentraut
027f144e39
Terminology cleanup: class -> table, instance -> row, attribute -> column,
...
etc.
2001-01-13 23:58:55 +00:00
Peter Eisentraut
dccfd74935
Refine some things to create better looking man pages.
2000-12-25 23:15:27 +00:00
Bruce Momjian
be389bcf8f
Final proofreader changes to docs.
2000-10-05 19:57:23 +00:00
Bruce Momjian
ec37ea1cc1
Cleanups
2000-07-22 02:39:10 +00:00
Bruce Momjian
8c1d09d591
Inheritance overhaul by Chris Bitmead <chris@bitmead.com>
2000-06-09 01:44:34 +00:00
Thomas G. Lockhart
bdf6c4f012
Update porting list.
...
Fix markup to get clean compile.
2000-04-11 05:39:15 +00:00
Peter Eisentraut
4579e68db2
Updated user's guide to match new psql's output format
...
Fixed bug in createdb/alternative location
2000-03-26 18:32:30 +00:00
Peter Eisentraut
2b84cbb60f
A few minor psql enhancements
...
Initdb help correction
Changed end/abort to commit/rollback and changed related notices
Commented out way old printing functions in libpq
Fixed a typo in alter table / alter column
2000-01-29 16:58:54 +00:00
Thomas G. Lockhart
a27512e634
Complete merge of all old man page information.
...
ecpg reference page still needs formatting.
1999-07-22 15:09:15 +00:00
Thomas G. Lockhart
d72168d6e0
Complete first pass at markup adjustments for docbook2man man pages.
...
Add some internal cross references to select.sgml.
1999-07-14 20:32:59 +00:00
Thomas G. Lockhart
a75f2d21a8
Clean up to ensure tag completion as required by the newest versions
...
of Norm's Modular Style Sheets and jade/docbook.
From Vince Vielhaber <vev@michvhf.com>.
1998-12-29 02:24:47 +00:00
Thomas G. Lockhart
3d83e28b2b
Minor cleanup in markup, especially in the Output section.
1998-10-30 19:34:40 +00:00
Thomas G. Lockhart
f8b6b5f14f
Cleanup markup and minor editing to prepare for first release.
1998-09-25 13:42:46 +00:00
Thomas G. Lockhart
1660e300e2
Add new files from Oliver and Thomas.
1998-09-01 15:53:09 +00:00