mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
Remove hstore % text[] operator; use slice() function instead.
David Wheeler, with one small correction by me.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/hstore.sgml,v 1.11 2010/06/22 11:36:16 rhaas Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/hstore.sgml,v 1.12 2010/07/02 20:36:49 rhaas Exp $ -->
|
||||
|
||||
<sect1 id="hstore">
|
||||
<title>hstore</title>
|
||||
@ -120,13 +120,6 @@
|
||||
<entry><literal>"a"=>"b"</literal></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><type>hstore</> <literal>%</> <type>text[]</></entry>
|
||||
<entry>extract a subset of an <type>hstore</></entry>
|
||||
<entry><literal>'a=>1,b=>2,c=>3'::hstore % ARRAY['b','c','x']</literal></entry>
|
||||
<entry><literal>"b"=>"2", "c"=>"3"</literal></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><type>hstore</> <literal>||</> <type>hstore</></entry>
|
||||
<entry>concatenate <type>hstore</>s</entry>
|
||||
@ -338,6 +331,14 @@ b
|
||||
<entry><literal>{{a,1},{b,2}}</literal></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><function>slice(hstore, text[])</function></entry>
|
||||
<entry><type>hstore</type></entry>
|
||||
<entry>extract a subset of an <type>hstore</></entry>
|
||||
<entry><literal>slice('a=>1,b=>2,c=>3'::hstore, ARRAY['b','c','x'])</literal></entry>
|
||||
<entry><literal>"b"=>"2", "c"=>"3"</literal></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><function>each(hstore)</function></entry>
|
||||
<entry><type>setof(key text, value text)</type></entry>
|
||||
|
Reference in New Issue
Block a user