From 9bccdf17f725550e463fbc9fddf0acf2ed3a8e66 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 11 Aug 2002 17:44:12 +0000 Subject: Create/drop cast now requires ownership of at least one of the types. --- doc/src/sgml/ref/create_cast.sgml | 12 +++--------- doc/src/sgml/ref/drop_cast.sgml | 14 ++++---------- 2 files changed, 7 insertions(+), 19 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/create_cast.sgml b/doc/src/sgml/ref/create_cast.sgml index 81259949f1e..7fd5ba0d470 100644 --- a/doc/src/sgml/ref/create_cast.sgml +++ b/doc/src/sgml/ref/create_cast.sgml @@ -1,4 +1,4 @@ - + @@ -81,9 +81,8 @@ INSERT INTO foo(f1) VALUES(42); - To be able to create a cast, you must own the underlying function. - To be able to create a binary compatible cast, you must own both - the source and the target data type. + To be able to create a cast, you must own the source or the target + data type. @@ -154,11 +153,6 @@ INSERT INTO foo(f1) VALUES(42); Use DROP CAST to remove user-defined casts. - - The privileges required to create a cast may be changed in a future - release. - - Remember that if you want to be able to convert types both ways you need to declare casts both ways explicitly. diff --git a/doc/src/sgml/ref/drop_cast.sgml b/doc/src/sgml/ref/drop_cast.sgml index 37152114bca..2f2cec02e14 100644 --- a/doc/src/sgml/ref/drop_cast.sgml +++ b/doc/src/sgml/ref/drop_cast.sgml @@ -1,4 +1,4 @@ - + @@ -26,10 +26,9 @@ DROP CAST (sourcetype AS targettype - To be able to drop a cast, you must own the underlying function. - To be able to drop a binary compatible cast, you must own both the - source and the target data type. These are the same privileges - that are required to create a cast. + To be able to drop a cast, you must own the source or the target + data type. These are the same privileges that are required to + create a cast. @@ -76,11 +75,6 @@ DROP CAST (sourcetype AS targettype Use CREATE CAST to create user-defined casts. - - - The privileges required to drop a cast may be changed in a future - release. - -- cgit v1.2.3