postgresql/doc/src/sgml/ref
Bruce Momjian 03194432de I attach a version of my toast-slicing patch, against current CVS
(current as of a few hours ago.)

This patch:

1. Adds PG_GETARG_xxx_P_SLICE() macros and associated support routines.

2. Adds routines in src/backend/access/tuptoaster.c for fetching only
necessary chunks of a toasted value. (Modelled on latest changes to
assume chunks are returned in order).

3. Amends text_substr and bytea_substr to use new methods. It now
handles multibyte cases -and should still lead to a performance
improvement in the multibyte case where the substring is near the
beginning of the string.

4. Added new command: ALTER TABLE tabname ALTER COLUMN colname SET
STORAGE {PLAIN | EXTERNAL | EXTENDED | MAIN} to parser and documented in
alter-table.sgml. (NB I used ColId as the item type for the storage
mode string, rather than a new production - I hope this makes sense!).
All this does is sets attstorage for the specified column.

4. AlterTableAlterColumnStatistics is now AlterTableAlterColumnFlags and
handles both statistics and storage (it uses the subtype code to
distinguish). The previous version of my patch also re-arranged other
code in backend/commands/command.c but I have dropped that from this
patch.(I plan to return to it separately).

5. Documented new macros (and also the PG_GETARG_xxx_P_COPY macros) in
xfunc.sgml. ref/alter_table.sgml also contains documentation for ALTER
COLUMN SET STORAGE.

John Gray
2002-03-05 05:33:31 +00:00
..
abort.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
allfiles.sgml User and database-specific session defaults for run-time configuration 2002-03-01 22:45:19 +00:00
alter_database.sgml User and database-specific session defaults for run-time configuration 2002-03-01 22:45:19 +00:00
alter_group.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
alter_table.sgml I attach a version of my toast-slicing patch, against current CVS 2002-03-05 05:33:31 +00:00
alter_user.sgml User and database-specific session defaults for run-time configuration 2002-03-01 22:45:19 +00:00
analyze.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
begin.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
checkpoint.sgml Put some kind of grammatical uniformity in the <refpurpose> lines. 2001-09-03 12:57:50 +00:00
close.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
cluster.sgml Repair example, per note in interactive docs. 2001-12-30 04:36:52 +00:00
comment.sgml Document obj_description and col_description functions; expand 2001-12-27 21:36:57 +00:00
commit.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
copy.sgml Modify COPY TO to emit carriage returns and newlines as backslash escapes 2002-02-12 21:25:41 +00:00
create_aggregate.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
create_constraint.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
create_database.sgml Re-add equals documentation with CREATE DATABASE. 2002-02-25 03:37:14 +00:00
create_function.sgml Revert quotes, 7.2 doesn't need them for CREATE FUNCTION. 2002-03-01 20:38:12 +00:00
create_group.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
create_index.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
create_language.sgml Privileges on functions and procedural languages 2002-02-18 23:11:58 +00:00
create_operator.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
create_rule.sgml Fix documentation misstatement: OLD is not valid in ON SELECT. 2002-01-24 18:28:15 +00:00
create_sequence.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
create_table_as.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
create_table.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
create_trigger.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
create_type.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
create_user.sgml Some cleanups in CREATE/ALTER/DROP USER ref pages. 2002-02-27 21:14:54 +00:00
create_view.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
createdb.sgml Add -O/--owner switch to createdb script, in support of new OWNER option 2002-02-24 23:27:58 +00:00
createlang.sgml Fix copy-and-paste brain damage. (These commands do not create a 2002-01-06 03:33:26 +00:00
createuser.sgml Point out that --adduser actually makes the new user a superuser. This 2002-02-13 19:32:17 +00:00
current_date.sgml Complete merge of all old man page information. 1999-07-22 15:09:15 +00:00
current_time.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
current_timestamp.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
current_user.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
declare.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
delete.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
drop_aggregate.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
drop_database.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
drop_function.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
drop_group.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
drop_index.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
drop_language.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
drop_operator.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
drop_rule.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
drop_sequence.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
drop_table.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
drop_trigger.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
drop_type.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
drop_user.sgml Some cleanups in CREATE/ALTER/DROP USER ref pages. 2002-02-27 21:14:54 +00:00
drop_view.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
dropdb.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
droplang.sgml Fix copy-and-paste brain damage. (These commands do not create a 2002-01-06 03:33:26 +00:00
dropuser.sgml Fix copy-and-paste typo. 2002-02-24 23:55:31 +00:00
ecpg-ref.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
end.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
explain.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
fetch.sgml Small spacing cleanup. 2002-02-21 22:42:04 +00:00
grant.sgml Wrap some SQL syntax examples so \h shows them better. 2002-02-21 22:39:36 +00:00
initdb.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
initlocation.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
insert.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
ipcclean.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
listen.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
load.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
lock.sgml Explain privileges required for LOCK. Minor wordsmithing too. 2002-01-18 01:05:43 +00:00
move.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
notify.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
pg_config-ref.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
pg_ctl-ref.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
pg_dump.sgml pg_dump and pg_restore man pages need to mention that one should restore 2002-02-11 00:14:10 +00:00
pg_dumpall.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
pg_passwd.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
pg_restore.sgml pg_dump and pg_restore man pages need to mention that one should restore 2002-02-11 00:14:10 +00:00
pgaccess-ref.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
pgtclsh.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
pgtksh.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
postgres-ref.sgml Commit to match discussed elog() changes. Only update is that LOG is 2002-03-02 21:39:36 +00:00
postmaster.sgml Commit to match discussed elog() changes. Only update is that LOG is 2002-03-02 21:39:36 +00:00
psql-ref.sgml Add \timing patch to psql. Times all queries. 2002-03-05 00:01:03 +00:00
reindex.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
reset.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
revoke.sgml Wrap some SQL syntax examples so \h shows them better. 2002-02-21 22:39:36 +00:00
rollback.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
select_into.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
select.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
set_constraints.sgml Put some kind of grammatical uniformity in the <refpurpose> lines. 2001-09-03 12:57:50 +00:00
set_session_auth.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
set_transaction.sgml Spell-check and markup police 2002-01-20 22:19:57 +00:00
set.sgml Correct typo noticed by Christopher Kings-Lynne. 2002-02-26 15:59:08 +00:00
show.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
truncate.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
unlisten.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
update.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
vacuum.sgml Use PostgreSQL consistantly throughout docs. Before, usage was split evenly 2001-12-08 03:24:40 +00:00
vacuumdb.sgml Fix param handling of create* admin scripts as described months ago. 2002-02-18 05:48:45 +00:00