aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2014-09-29 13:32:22 -0400
committerStephen Frost <sfrost@snowman.net>2014-09-29 13:32:22 -0400
commitc8a026e4f15e2063cd7fe6cb9ffe44f2a81398bd (patch)
tree7eafaecf26e876c7be72bd666fbb24adb8a097ae /doc/src
parentdef4c28cf9147472ba4cfc5b68a098d7a29fb0fb (diff)
downloadpostgresql-c8a026e4f15e2063cd7fe6cb9ffe44f2a81398bd.tar.gz
postgresql-c8a026e4f15e2063cd7fe6cb9ffe44f2a81398bd.zip
Revert 95d737ff to add 'ignore_nulls'
Per discussion, revert the commit which added 'ignore_nulls' to row_to_json. This capability would be better added as an independent function rather than being bolted on to row_to_json. Additionally, the implementation didn't address complex JSON objects, and so was incomplete anyway. Pointed out by Tom and discussed with Andrew and Robert.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/func.sgml6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 7195df85ff5..3a7cfa93c27 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -10309,13 +10309,11 @@ table2-mapping
</row>
<row>
<entry>
- <literal>row_to_json(rowval record [, pretty bool [, ignore_nulls bool] ])</literal>
+ <literal>row_to_json(record [, pretty_bool])</literal>
</entry>
<entry>
Returns the row as a JSON object. Line feeds will be added between
- level-1 elements if <parameter>pretty_bool</parameter> is true. Elements
- with NULL values will be skipped when <parameter>ignore_nulls</parameter>
- is true.
+ level-1 elements if <parameter>pretty_bool</parameter> is true.
</entry>
<entry><literal>row_to_json(row(1,'foo'))</literal></entry>
<entry><literal>{"f1":1,"f2":"foo"}</literal></entry>