This will work too:
<programlisting>
ALTER AGGREGATE mypercentile(float8, integer) SET SCHEMA myschema;
-</programlisting>
- </para>
+</programlisting></para>
</refsect1>
<refsect1>
Add some tables to the publication:
<programlisting>
ALTER PUBLICATION mypublication ADD TABLE users, departments;
-</programlisting>
- </para>
+</programlisting></para>
</refsect1>
<refsect1>
Disable (stop) the subscription:
<programlisting>
ALTER SUBSCRIPTION mysub DISABLE;
-</programlisting>
- </para>
+</programlisting></para>
</refsect1>
<refsect1>
in <filename>postgresql.conf</>:
<programlisting>
ALTER SYSTEM RESET wal_level;
-</programlisting>
- </para>
+</programlisting></para>
</refsect1>
<refsect1>
To rename an enum value:
<programlisting>
ALTER TYPE colors RENAME VALUE 'purple' TO 'mauve';
-</programlisting>
- </para>
+</programlisting></para>
</refsect1>
<refsect1>
handler function <literal>heptree_handler</>:
<programlisting>
CREATE ACCESS METHOD heptree TYPE INDEX HANDLER heptree_handler;
-</programlisting>
- </para>
+</programlisting></para>
</refsect1>
<refsect1>
<programlisting>
CREATE PUBLICATION insert_only FOR TABLE mydata
WITH (publish = 'insert');
-</programlisting>
- </para>
+</programlisting></para>
</refsect1>
<refsect1>
CONNECTION 'host=192.168.1.50 port=5432 user=foo dbname=foodb'
PUBLICATION insert_only
WITH (enabled = false);
-</programlisting>
- </para>
+</programlisting></para>
</refsect1>
<refsect1>
To remove multiple aggregate functions in one command:
<programlisting>
DROP AGGREGATE myavg(integer), myavg(bigint);
-</programlisting>
- </para>
+</programlisting></para>
</refsect1>
<refsect1>
<programlisting>
DROP POLICY p1 ON my_table;
-</programlisting>
- </para>
+</programlisting></para>
</refsect1>
<refsect1>
Drop a publication:
<programlisting>
DROP PUBLICATION mypublication;
-</programlisting>
- </para>
-
+</programlisting></para>
</refsect1>
<refsect1>
DROP STATISTICS IF EXISTS
accounting.users_uid_creation,
public.grants_user_role;
-</programlisting>
- </para>
-
+</programlisting></para>
</refsect1>
<refsect1>
Drop a subscription:
<programlisting>
DROP SUBSCRIPTION mysub;
-</programlisting>
- </para>
-
+</programlisting></para>
</refsect1>
<refsect1>
<programlisting>
IMPORT FOREIGN SCHEMA foreign_films LIMIT TO (actors, directors)
FROM SERVER film_server INTO films;
-</programlisting>
- </para>
-
+</programlisting></para>
</refsect1>
<refsect1 id="SQL-IMPORTFOREIGNSCHEMA-compatibility">
-- just use a regular unique constraint on "did"
INSERT INTO distributors (did, dname) VALUES (10, 'Conrad International')
ON CONFLICT (did) WHERE is_active DO NOTHING;
-</programlisting>
- </para>
+</programlisting></para>
</refsect1>
<refsect1>