Skip to content
Snippets Groups Projects
user avatar
Tom Lane authored
The documentation implied that there was seldom any reason to use the
array_append, array_prepend, and array_cat functions directly.  But that's
not really true, because they can help make it clear which case is meant,
which the || operator can't do since it's overloaded to represent all three
cases.  Add some discussion and examples illustrating the potentially
confusing behavior that can ensue if the parser misinterprets what was
meant.

Per a complaint from Michael Herold.  Back-patch to 9.2, which is where ||
started to behave this way.
349ce287
History
Name Last commit Last update
..
ref
.gitignore
Makefile
README.links
acronyms.sgml
adminpack.sgml
advanced.sgml
arch-dev.sgml
array.sgml
auth-delay.sgml
auto-explain.sgml
backup.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
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
keywords.sgml
legal.sgml
libpq.sgml
lo.sgml
lobj.sgml
ltree.sgml
maintenance.sgml
manage-ag.sgml
mk_feature_tables.pl
monitoring.sgml
mvcc.sgml
nls.sgml
notation.sgml
oid2name.sgml
pageinspect.sgml
passwordcheck.sgml
perform.sgml
pgarchivecleanup.sgml
pgbench.sgml
pgbuffercache.sgml
pgcrypto.sgml
pgfreespacemap.sgml
pgrowlocks.sgml
pgstandby.sgml
pgstatstatements.sgml
pgstattuple.sgml
pgtestfsync.sgml
pgtesttiming.sgml
pgtrgm.sgml
pgupgrade.sgml
planstats.sgml
plhandler.sgml
plperl.sgml