hstore_90.patch
application/octet-stream
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: unified
| File | + | − |
|---|---|---|
| doc/src/sgml/hstore.sgml | 16 | 0 |
| src/backend/commands/operatorcmds.c | 10 | 0 |
diff --git a/doc/src/sgml/hstore.sgml b/doc/src/sgml/hstore.sgml
index 76d876b..78c2e81 100644
--- a/doc/src/sgml/hstore.sgml
+++ b/doc/src/sgml/hstore.sgml
@@ -225,6 +225,14 @@
</para>
</note>
+ <note>
+ <para>
+ The <literal>=></> operator is deprecated and may be removed in a
+ future release. The use of the <literal>hstore(text, text)</literal>
+ function is recommended as an alternative.
+ </para>
+ </note>
+
<table id="hstore-func-table">
<title><type>hstore</> Functions</title>
@@ -266,6 +274,14 @@
</row>
<row>
+ <entry><function>hstore(text, text)</function></entry>
+ <entry><type>hstore</type></entry>
+ <entry>make single-item <type>hstore</></entry>
+ <entry><literal>hstore('a', 'b')</literal></entry>
+ <entry><literal>"a"=>"b"</literal></entry>
+ </row>
+
+ <row>
<entry><function>akeys(hstore)</function></entry>
<entry><type>text[]</type></entry>
<entry>get <type>hstore</>'s keys as an array</entry>
diff --git a/src/backend/commands/operatorcmds.c b/src/backend/commands/operatorcmds.c
index 9c07cf3..c0dc7a2 100644
--- a/src/backend/commands/operatorcmds.c
+++ b/src/backend/commands/operatorcmds.c
@@ -88,6 +88,16 @@ DefineOperator(List *names, List *parameters)
/* Convert list of names to a name and namespace */
oprNamespace = QualifiedNameGetCreationNamespace(names, &oprName);
+ /*
+ * The SQL standard committee has decided that => should be used for
+ * named parameters; therefore, a future release of PostgreSQL may
+ * disallow it as the name of a user-defined operator.
+ */
+ if (strcmp(oprName, "=>") == 0)
+ ereport(WARNING,
+ (errmsg("=> is deprecated as an operator name"),
+ errdetail("This name may be disallowed altogether in future versions of PostgreSQL.")));
+
/* Check we have creation rights in target namespace */
aclresult = pg_namespace_aclcheck(oprNamespace, GetUserId(), ACL_CREATE);
if (aclresult != ACLCHECK_OK)