don't generate constraint names like "$1" anymore.
-ERROR: insert or update on table "weather" violates foreign key constraint "$1"
+ERROR: insert or update on table "weather" violates foreign key constraint "weather_city_fkey"
DETAIL: Key (city)=(Berkeley) is not present in table "cities".
Remembering the bank database, suppose we debit $100.00 from Alice's
account, and credit Bob's account, only to find later that we should
have credited Wally's account. We could do it using savepoints like
+ this:
BEGIN;
-
+
Data Definition
DROP TABLE products;
-NOTICE: constraint $1 on table orders depends on table products
+NOTICE: constraint orders_product_no_fkey on table orders depends on table products
ERROR: cannot drop table products because other objects depend on it
HINT: Use DROP ... CASCADE to drop the dependent objects too.