This will work too:
ALTER AGGREGATE mypercentile(float8, integer) SET SCHEMA myschema;
-
-
+
Add some tables to the publication:
ALTER PUBLICATION mypublication ADD TABLE users, departments;
-
-
+
Disable (stop) the subscription:
ALTER SUBSCRIPTION mysub DISABLE;
-
-
+
in postgresql.conf>:
ALTER SYSTEM RESET wal_level;
-
-
+
To rename an enum value:
ALTER TYPE colors RENAME VALUE 'purple' TO 'mauve';
-
-
+
handler function heptree_handler>:
CREATE ACCESS METHOD heptree TYPE INDEX HANDLER heptree_handler;
-
-
+
CREATE PUBLICATION insert_only FOR TABLE mydata
WITH (publish = 'insert');
-
-
+
CONNECTION 'host=192.168.1.50 port=5432 user=foo dbname=foodb'
PUBLICATION insert_only
WITH (enabled = false);
-
-
+
To remove multiple aggregate functions in one command:
DROP AGGREGATE myavg(integer), myavg(bigint);
-
-
+
DROP POLICY p1 ON my_table;
-
-
+
Drop a publication:
DROP PUBLICATION mypublication;
-
-
-
+
DROP STATISTICS IF EXISTS
accounting.users_uid_creation,
public.grants_user_role;
-
-
-
+
Drop a subscription:
DROP SUBSCRIPTION mysub;
-
-
-
+
IMPORT FOREIGN SCHEMA foreign_films LIMIT TO (actors, directors)
FROM SERVER film_server INTO films;
-
-
-
+
-- 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;
-
-
+