postgresql/doc/src/sgml
Andres Freund 0ef3c29a4b Improve documentation about binary/textual output mode for output plugins.
Also improve related error message as it contributed to the confusion.

Discussion: CAB7nPqQrqFzjqCjxu4GZzTrD9kpj6HMn9G5aOOMwt1WZ8NfqeA@mail.gmail.com,
    CAB7nPqQXc_+g95zWnqaa=mVQ4d3BVRs6T41frcEYi2ocUrR3+A@mail.gmail.com

Per discussion between Michael Paquier, Robert Haas and Andres Freund

Backpatch to 9.4 where logical decoding was introduced.
2014-10-01 13:22:17 +02:00
..
ref Correct stdin/stdout usage in COPY .. PROGRAM 2014-09-30 15:55:28 -04:00
.gitignore
acronyms.sgml
adminpack.sgml
advanced.sgml
arch-dev.sgml
array.sgml
auth-delay.sgml
auto-explain.sgml
backup.sgml
bgworker.sgml
biblio.sgml
bki.sgml
btree-gin.sgml
btree-gist.sgml
catalogs.sgml
charset.sgml
chkpass.sgml
citext.sgml
client-auth.sgml
config.sgml
contacts.sgml
contrib-spi.sgml
contrib.sgml
cube.sgml
datatype.sgml
datetime.sgml
dblink.sgml
ddl.sgml
dfunc.sgml
dict-int.sgml
dict-xsyn.sgml
diskusage.sgml
dml.sgml
docguide.sgml
dummy-seclabel.sgml
earthdistance.sgml
ecpg.sgml
errcodes.sgml
event-trigger.sgml
extend.sgml
external-projects.sgml
fdwhandler.sgml
features.sgml
file-fdw.sgml
filelist.sgml
fixrtf
func.sgml
fuzzystrmatch.sgml
generate-errcodes-table.pl
geqo.sgml
gin.sgml
gist.sgml
high-availability.sgml
history.sgml
hstore.sgml
indexam.sgml
indices.sgml
info.sgml
information_schema.sgml
install-windows.sgml
installation.sgml
intagg.sgml
intarray.sgml
intro.sgml
isn.sgml
jadetex.cfg
json.sgml
keywords.sgml
legal.sgml
libpq.sgml
lo.sgml
lobj.sgml
logicaldecoding.sgml
ltree.sgml
maintenance.sgml
Makefile
manage-ag.sgml
mk_feature_tables.pl
monitoring.sgml
mvcc.sgml
nls.sgml
notation.sgml
oid2name.sgml
pageinspect.sgml
passwordcheck.sgml
perform.sgml
pg_xlogdump.sgml
pgarchivecleanup.sgml
pgbench.sgml
pgbuffercache.sgml
pgcrypto.sgml
pgfreespacemap.sgml
pgprewarm.sgml
pgrowlocks.sgml
pgstandby.sgml
pgstatstatements.sgml
pgstattuple.sgml
pgtestfsync.sgml
pgtesttiming.sgml
pgtrgm.sgml
pgupgrade.sgml
planstats.sgml
plhandler.sgml
plperl.sgml
plpgsql.sgml
plpython.sgml
pltcl.sgml
postgres-fdw.sgml
postgres.sgml
problems.sgml
protocol.sgml
queries.sgml
query.sgml
rangetypes.sgml
README.links
recovery-config.sgml
reference.sgml
regress.sgml
release-7.4.sgml
release-8.0.sgml
release-8.1.sgml
release-8.2.sgml
release-8.3.sgml
release-8.4.sgml
release-9.0.sgml
release-9.1.sgml
release-9.2.sgml
release-9.3.sgml
release-9.4.sgml
release-old.sgml
release.sgml Initial version of Postgres 9.4 release notes 2014-05-03 23:16:24 -04:00
rowtypes.sgml
rules.sgml
runtime.sgml
seg.sgml
sepgsql.sgml
sourcerepo.sgml
sources.sgml
spgist.sgml
spi.sgml
sql.sgml
sslinfo.sgml
standalone-install.sgml
start.sgml
storage.sgml
stylesheet-common.xsl
stylesheet-fo.xsl
stylesheet-hh.xsl
stylesheet-man.xsl
stylesheet.css
stylesheet.dsl
stylesheet.xsl
syntax.sgml
tablefunc.sgml
tcn.sgml
test-decoding.sgml
test-parser.sgml
test-shm-mq.sgml
textsearch.sgml
trigger.sgml
tsearch2.sgml
typeconv.sgml
unaccent.sgml
user-manag.sgml
uuid-ossp.sgml
vacuumlo.sgml
wal.sgml
xaggr.sgml
xfunc.sgml
xindex.sgml
xml2.sgml
xoper.sgml
xplang.sgml
xtypes.sgml

<!-- 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