postgresql/doc/src/sgml
Tom Lane 0ce627d465 Document evaluation-order considerations for aggregate functions.
The SELECT reference page didn't really address the question of when
aggregate function evaluation occurs, nor did the "expression evaluation
rules" documentation mention that CASE can't be used to control whether
an aggregate gets evaluated or not.  Improve that.

Per discussion of bug #11661.  Original text by Marti Raudsepp and Michael
Paquier, rewritten significantly by me.
2014-11-14 17:19:56 -05:00
..
ref Document evaluation-order considerations for aggregate functions. 2014-11-14 17:19:56 -05:00
.gitignore Don't generate plain-text HISTORY and src/test/regress/README anymore. 2014-02-10 20:48:04 -05:00
acronyms.sgml Add SP-GiST (space-partitioned GiST) index access method. 2011-12-17 16:42:30 -05:00
adminpack.sgml
advanced.sgml doc: split long query into multiple lines 2013-12-04 10:03:13 -05:00
arch-dev.sgml doc: Fix claim that query is passed as ASCII text 2013-05-30 21:09:27 -04:00
array.sgml Add a cardinality function for arrays. 2014-01-21 12:38:53 -05:00
auth-delay.sgml doc: Fix DocBook XML validity 2014-05-06 21:28:58 -04:00
auto-explain.sgml Fix failure of contrib/auto_explain to print per-node timing information. 2014-09-19 13:19:27 -04:00
backup.sgml upgrade docs: highlight pg_upgrade, warn about globals preservation 2014-08-25 15:34:55 -04:00
bgworker.sgml Fix typo in docs. 2014-10-14 09:45:33 +03:00
biblio.sgml
bki.sgml
brin.sgml Further code and wording tweaks in BRIN 2014-11-10 15:56:08 -03:00
btree-gin.sgml
btree-gist.sgml
catalogs.sgml docs: remove mention that attnotnull should be changed 2014-10-11 17:23:57 -04:00
charset.sgml doc: Remove i18ngurus.com link 2013-07-02 20:32:09 -04:00
chkpass.sgml
citext.sgml
client-auth.sgml doc: Reflect renaming of Mac OS X to OS X 2014-09-09 13:56:29 -04:00
config.sgml Rename pending_list_cleanup_size to gin_pending_list_limit. 2014-11-13 12:14:48 +09:00
contacts.sgml
contrib-spi.sgml
contrib.sgml Introduce logical decoding. 2014-03-03 16:32:18 -05:00
cube.sgml
datatype.sgml Allow input format xxxx-xxxx-xxxx for macaddr type 2014-10-21 16:16:39 -04:00
datetime.sgml Support timezone abbreviations that sometimes change. 2014-10-16 15:22:10 -04:00
dblink.sgml doc: Improve DocBook XML validity 2014-02-23 21:31:08 -05:00
ddl.sgml Fix relcache for policies, and doc updates 2014-09-26 12:46:26 -04:00
dfunc.sgml doc: Reflect renaming of Mac OS X to OS X 2014-09-09 13:56:29 -04:00
dict-int.sgml
dict-xsyn.sgml
diskusage.sgml Get rid of pg_class.reltoastidxid. 2013-07-04 03:24:09 +09:00
dml.sgml
docguide.sgml doc: Check DocBook XML validity during the build 2014-10-21 14:46:38 -04:00
dummy-seclabel.sgml
earthdistance.sgml Add contrib function references in the doc index 2013-07-04 11:33:11 -04:00
ecpg.sgml Remove the last vestige of server-side autocommit. 2014-11-05 19:35:23 -05:00
errcodes.sgml Provide database object names as separate fields in error messages. 2013-01-29 17:08:26 -05:00
event-trigger.sgml Row-Level Security Policies (RLS) 2014-09-19 11:18:35 -04:00
extend.sgml doc: Fix spacing in verbatim environments 2014-07-08 11:39:36 -04:00
external-projects.sgml doc: Correct psycopg URL 2013-10-02 21:33:26 -04:00
fdwhandler.sgml doc: Spell checking 2014-07-16 22:48:11 -04:00
features.sgml Update SQL features/conformance information to SQL:2011 2012-05-17 09:50:04 +03:00
file-fdw.sgml Provide a FORCE NULL option to COPY in CSV mode. 2014-03-04 17:31:59 -05:00
filelist.sgml BRIN: Block Range Indexes 2014-11-07 16:38:14 -03:00
fixrtf
func.sgml doc: Add index entry for "hypothetical-set aggregate" 2014-11-13 11:57:50 -05:00
fuzzystrmatch.sgml Add contrib function references in the doc index 2013-07-04 11:33:11 -04:00
generate-errcodes-table.pl Update copyright for 2014 2014-01-07 16:05:30 -05:00
geqo.sgml doc: Improve setup for documentation building with FOP 2013-10-21 06:43:08 -04:00
gin.sgml Rename pending_list_cleanup_size to gin_pending_list_limit. 2014-11-13 12:14:48 +09:00
gist.sgml Add GUC and storage parameter to set the maximum size of GIN pending list. 2014-11-11 21:08:21 +09:00
high-availability.sgml doc: Spell checking 2014-07-16 22:48:11 -04:00
history.sgml Add small doc mention that libpq is named after POSTQUEL. 2012-09-02 08:42:03 -04:00
hstore.sgml doc: fix hstore_to_json_loose() doc wording 2013-10-02 19:25:30 -04:00
indexam.sgml doc: Spell checking 2014-07-16 22:48:11 -04:00
indices.sgml BRIN: Block Range Indexes 2014-11-07 16:38:14 -03:00
info.sgml
information_schema.sgml Implement information_schema.parameters.parameter_default column 2013-11-26 23:21:35 -05:00
install-windows.sgml Provide for client-only installs with MSVC. 2014-01-26 17:03:13 -05:00
installation.sgml Fix generation of INSTALL file by removing link 2014-11-02 20:17:32 -05:00
intagg.sgml Add contrib function references in the doc index 2013-07-04 11:33:11 -04:00
intarray.sgml Add contrib function references in the doc index 2013-07-04 11:33:11 -04:00
intro.sgml Support automatically-updatable views. 2012-12-08 18:26:21 -05:00
isn.sgml Update URL reference material in /contrib/isn docs 2014-09-03 17:22:20 -04:00
jadetex.cfg
json.sgml Improve documentation about JSONB array containment behavior. 2014-10-11 14:29:51 -04:00
keywords.sgml Row-Level Security Policies (RLS) 2014-09-19 11:18:35 -04:00
legal.sgml Update copyright for 2014 2014-01-07 16:05:30 -05:00
libpq.sgml Make pg_service.conf sample LDIF more portable. 2014-08-18 22:58:57 -04:00
lo.sgml Add more limited large object trigger example. 2012-08-14 23:25:20 -04:00
lobj.sgml Rename lo_create(oid, bytea) to lo_from_bytea(). 2014-06-12 15:39:09 -04:00
logicaldecoding.sgml doc: Fix typos 2014-10-31 08:11:06 -04:00
ltree.sgml Add contrib function references in the doc index 2013-07-04 11:33:11 -04:00
maintenance.sgml Don't balance vacuum cost delay when per-table settings are in effect 2014-10-03 13:01:27 -03:00
Makefile doc: Check DocBook XML validity during the build 2014-10-21 14:46:38 -04:00
manage-ag.sgml docs: tablespaces cannot be accessed independently 2014-04-19 10:52:49 -04:00
mk_feature_tables.pl Run newly-configured perltidy script on Perl files. 2012-07-04 21:47:49 -04:00
monitoring.sgml doc: Reflect renaming of Mac OS X to OS X 2014-09-09 13:56:29 -04:00
mvcc.sgml Tweak row-level locking documentation 2014-11-13 14:45:55 -03:00
nls.sgml Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05:00
notation.sgml doc: Remove paragraph about typesetting conventions 2013-05-31 22:45:03 -04:00
oid2name.sgml doc: Improve DocBook XML validity 2014-02-23 21:31:08 -05:00
pageinspect.sgml BRIN: Block Range Indexes 2014-11-07 16:38:14 -03:00
passwordcheck.sgml Remove support for native krb5 authentication 2014-01-19 17:05:01 +01:00
perform.sgml Print planning time only in EXPLAIN ANALYZE, not plain EXPLAIN. 2014-10-15 18:50:13 -04:00
pg_xlogdump.sgml Add the capability to display summary statistics to pg_xlogdump. 2014-09-19 16:33:16 +02:00
pgarchivecleanup.sgml doc: Improve DocBook XML validity 2014-02-23 21:31:08 -05:00
pgbench.sgml Add --latency-limit option to pgbench. 2014-10-13 20:50:24 +03:00
pgbuffercache.sgml Add pinning_backends column to the pg_buffercache extension. 2014-08-22 00:28:37 +02:00
pgcrypto.sgml Docs: fix incorrect spelling of contrib/pgcrypto option. 2014-11-03 11:11:34 -05:00
pgfreespacemap.sgml doc: Fix DocBook XML validity 2014-05-06 21:28:58 -04:00
pgprewarm.sgml Fix whitespace 2014-07-08 23:29:25 -04:00
pgrowlocks.sgml docs: remove unnecessary references to old PG versions 2014-02-24 12:56:37 -05:00
pgstandby.sgml doc: Improve DocBook XML validity 2014-02-23 21:31:08 -05:00
pgstatstatements.sgml doc: Spell checking 2014-07-16 22:48:11 -04:00
pgstattuple.sgml doc: Fix DocBook XML validity 2014-05-06 21:28:58 -04:00
pgtestfsync.sgml doc: Improve DocBook XML validity 2014-02-23 21:31:08 -05:00
pgtesttiming.sgml doc: Improve DocBook XML validity 2014-02-23 21:31:08 -05:00
pgtrgm.sgml Add contrib function references in the doc index 2013-07-04 11:33:11 -04:00
pgupgrade.sgml pg_upgrade docs: update docs for 8.3 support removal 2014-08-25 20:11:48 -04:00
planstats.sgml Documentation spell checking and markup improvements 2013-05-20 21:13:13 -04:00
plhandler.sgml Document security implications of check_function_bodies. 2014-02-17 09:33:31 -05:00
plperl.sgml doc: Fix DocBook XML validity 2014-05-06 21:28:58 -04:00
plpgsql.sgml Fix broken example in PL/pgSQL document. 2014-10-10 03:18:01 +09:00
plpython.sgml PL/Python: Fix example 2014-11-01 11:31:35 -04:00
pltcl.sgml doc: Various typo/grammar fixes 2014-08-30 10:52:36 -05:00
postgres-fdw.sgml Implement IMPORT FOREIGN SCHEMA. 2014-07-10 15:01:43 -04:00
postgres.sgml BRIN: Block Range Indexes 2014-11-07 16:38:14 -03:00
problems.sgml
protocol.sgml doc: Move misplaced paragraph 2014-11-04 16:10:58 -05:00
queries.sgml doc: improve USING and NATURAL JOIN descriptions 2014-10-13 15:39:52 -04:00
query.sgml
rangetypes.sgml Improve Range Types and Exclusion Constraints example. 2013-09-04 23:30:27 -07:00
README.links docs: improve xref description for xreflabel and refentry links 2014-01-30 12:26:18 -05:00
recovery-config.sgml doc: Spell checking 2014-07-16 22:48:11 -04:00
reference.sgml Row-Level Security Policies (RLS) 2014-09-19 11:18:35 -04:00
regress.sgml Add configure --enable-tap-tests option 2014-11-02 09:17:26 -05:00
release-7.4.sgml doc: Various typo/grammar fixes 2014-08-30 10:52:36 -05:00
release-8.0.sgml Improve cross-references between minor version release notes. 2014-02-12 19:09:18 -05:00
release-8.1.sgml Improve cross-references between minor version release notes. 2014-02-12 19:09:18 -05:00
release-8.2.sgml doc: Various typo/grammar fixes 2014-08-30 10:52:36 -05:00
release-8.3.sgml Improve cross-references between minor version release notes. 2014-02-12 19:09:18 -05:00
release-8.4.sgml Release notes for 9.3.5, 9.2.9, 9.1.14, 9.0.18, 8.4.22. 2014-07-21 14:59:17 -04:00
release-9.0.sgml Release notes for 9.3.5, 9.2.9, 9.1.14, 9.0.18, 8.4.22. 2014-07-21 14:59:17 -04:00
release-9.1.sgml Release notes for 9.3.5, 9.2.9, 9.1.14, 9.0.18, 8.4.22. 2014-07-21 14:59:17 -04:00
release-9.2.sgml Release notes for 9.3.5, 9.2.9, 9.1.14, 9.0.18, 8.4.22. 2014-07-21 14:59:17 -04:00
release-9.3.sgml Release notes for 9.3.5, 9.2.9, 9.1.14, 9.0.18, 8.4.22. 2014-07-21 14:59:17 -04:00
release-9.4.sgml Update 9.4 release notes for commits through today. 2014-10-05 14:14:04 -04:00
release-old.sgml doc: Various typo/grammar fixes 2014-08-30 10:52:36 -05:00
release.sgml Initial version of Postgres 9.4 release notes 2014-05-03 23:16:24 -04:00
rowtypes.sgml Further review of range-types patch. 2011-11-18 18:24:32 -05:00
rules.sgml Implement UPDATE tab SET (col1,col2,...) = (SELECT ...), ... 2014-06-18 13:22:34 -04:00
runtime.sgml doc: mention more changes needed to use huge pages 2014-10-13 17:23:36 -04:00
seg.sgml
sepgsql.sgml doc: Fix DocBook XML validity 2014-05-06 21:28:58 -04:00
sourcerepo.sgml
sources.sgml Show PIDs of lock holders and waiters in log_lock_waits log message. 2014-03-13 03:26:47 +09:00
spgist.sgml Add an in-core GiST index opclass for inet/cidr types. 2014-04-08 15:46:43 -04:00
spi.sgml doc: Spell checking 2014-07-16 22:48:11 -04:00
sql.sgml Implement SKIP LOCKED for row-level locks 2014-10-07 17:23:34 -03:00
sslinfo.sgml doc: Fix DocBook XML validity 2014-05-06 21:28:58 -04:00
standalone-install.sgml Don't generate plain-text HISTORY and src/test/regress/README anymore. 2014-02-10 20:48:04 -05:00
start.sgml
storage.sgml Fix documentation oversights about pageinspect and initialization fork. 2014-08-11 22:52:16 +09:00
stylesheet-common.xsl doc: Disable preface.autolabel in XSLT 2013-12-01 17:13:23 -05:00
stylesheet-fo.xsl doc: Improve setup for documentation building with FOP 2013-10-21 06:43:08 -04:00
stylesheet-hh.xsl Fix display of <command> elements on man pages 2012-04-30 21:18:03 +03:00
stylesheet-man.xsl doc: Work around stylesheet bug for man build 2014-08-17 09:10:28 -04:00
stylesheet.css
stylesheet.dsl doc: Various typo/grammar fixes 2014-08-30 10:52:36 -05:00
stylesheet.xsl doc: Disable indentation of XHTML output 2014-02-05 23:49:25 -05:00
syntax.sgml Document evaluation-order considerations for aggregate functions. 2014-11-14 17:19:56 -05:00
tablefunc.sgml Add contrib function references in the doc index 2013-07-04 11:33:11 -04:00
tcn.sgml Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
test-decoding.sgml doc: Fix spacing in verbatim environments 2014-07-08 11:39:36 -04:00
test-parser.sgml
test-shm-mq.sgml Fix typo in test_shm_mq document. 2014-05-13 01:41:54 +09:00
textsearch.sgml doc: Various typo/grammar fixes 2014-08-30 10:52:36 -05:00
trigger.sgml Offer triggers on foreign tables. 2014-03-23 02:16:34 -04:00
tsearch2.sgml
typeconv.sgml Clarify type resolution behavior for domain types. 2014-08-10 16:13:13 -04:00
unaccent.sgml Allow multi-character source strings in contrib/unaccent. 2014-06-30 21:46:29 -04:00
user-manag.sgml Make superuser imply replication privilege. The idea of a privilege that 2012-01-14 18:22:16 +02:00
uuid-ossp.sgml doc: Reflect renaming of Mac OS X to OS X 2014-09-09 13:56:29 -04:00
vacuumlo.sgml doc: Improve DocBook XML validity 2014-02-23 21:31:08 -05:00
wal.sgml Move the backup-block logic from XLogInsert to a new file, xloginsert.c. 2014-11-06 13:55:36 +02:00
xaggr.sgml doc: Spell checking 2014-07-16 22:48:11 -04:00
xfunc.sgml Document SQL functions' behavior of parsing the whole function at once. 2014-06-19 12:33:56 -04:00
xindex.sgml doc: Spell checking 2014-07-16 22:48:11 -04:00
xml2.sgml doc: Various typo/grammar fixes 2014-08-30 10:52:36 -05:00
xoper.sgml doc: Various typo/grammar fixes 2014-08-30 10:52:36 -05:00
xplang.sgml
xtypes.sgml Add more use of psprintf() 2014-01-06 21:30:26 -05:00

<!-- doc/src/sgml/README.links -->

Linking within SGML documents can be confusing, so here is a summary:


Intra-document Linking
----------------------

<xref>
	use to get chapter/section number from the title of the target
	link, or xreflabel if defined at the target, or refentrytitle if target
        is a refentry;  has no close tag
	http://www.oasis-open.org/docbook/documentation/reference/html/xref.html

<link>
	use to supply text for the link, requires </link>
	http://www.oasis-open.org/docbook/documentation/reference/html/link.html

linkend=
	controls the target of the link/xref, required

endterm=
	for <xref>, allows the text of the link/xref to be taken from a
	different link target title


External Linking
----------------

<ulink>
	like <link>, but uses a URL (not a document target);  requires
	</ulink>; if no text is specified, the URL appears as the link
	text
	http://www.oasis-open.org/docbook/documentation/reference/html/ulink.html

url=
	used by <ulink> to specify the URL, required


Guidelines
----------

o  If you want to supply text, use <link>, else <xref>
o  Do not use text with <ulink> so the URL appears in printed output
o  Specific nouns like GUC variables, SQL commands, and contrib modules
   usually have xreflabels