aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-02-04 23:03:10 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2016-02-04 23:03:37 -0500
commit6819514fca22f8554edcab6e4d0402b0221f03bb (patch)
treee78c772e621f3f83804d76d024fdbdf80943a7de /src/tutorial/basics.source
parentd0cd7bda97a626049aa7d247374909c52399c413 (diff)
downloadpostgresql-6819514fca22f8554edcab6e4d0402b0221f03bb.tar.gz
postgresql-6819514fca22f8554edcab6e4d0402b0221f03bb.zip
Add num_nulls() and num_nonnulls() to count NULL arguments.
An example use-case is "CHECK(num_nonnulls(a,b,c) = 1)" to assert that exactly one of a,b,c isn't NULL. The functions are variadic, so they can also be pressed into service to count the number of null or nonnull elements in an array. Marko Tiikkaja, reviewed by Pavel Stehule
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions