Update a couple of example error messages to reflect the fact that we
authorTom Lane
Sat, 7 Aug 2004 19:53:48 +0000 (19:53 +0000)
committerTom Lane
Sat, 7 Aug 2004 19:53:48 +0000 (19:53 +0000)
don't generate constraint names like "$1" anymore.

doc/src/sgml/advanced.sgml
doc/src/sgml/ddl.sgml

index 475ba910a1eaccc77740ba130026c6643b413f60..f6b17018702993274b7804b18b069888e4f1aaf2 100644 (file)
@@ -1,5 +1,5 @@
 
 
  
@@ -123,7 +123,7 @@ INSERT INTO weather VALUES ('Berkeley', 45, 53, 0.0, '1994-11-28');
 
 
 
-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".
 
    
@@ -290,6 +290,7 @@ COMMIT;
     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;
index 404181482bf355c74b0ae66491e772b94d093bb4..71bb34d83ce417fc7d22cb828a09f0996b511ff6 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
 
  Data Definition
@@ -1971,7 +1971,7 @@ REVOKE CREATE ON SCHEMA public FROM PUBLIC;
 
 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.