1DROP CAST(7)            PostgreSQL 9.2.24 Documentation           DROP CAST(7)
2
3
4

NAME

6       DROP_CAST - remove a cast
7

SYNOPSIS

9       DROP CAST [ IF EXISTS ] (source_type AS target_type) [ CASCADE | RESTRICT ]
10

DESCRIPTION

12       DROP CAST removes a previously defined cast.
13
14       To be able to drop a cast, you must own the source or the target data
15       type. These are the same privileges that are required to create a cast.
16

PARAMETERS

18       IF EXISTS
19           Do not throw an error if the cast does not exist. A notice is
20           issued in this case.
21
22       source_type
23           The name of the source data type of the cast.
24
25       target_type
26           The name of the target data type of the cast.
27
28       CASCADE, RESTRICT
29           These key words do not have any effect, since there are no
30           dependencies on casts.
31

EXAMPLES

33       To drop the cast from type text to type int:
34
35           DROP CAST (text AS int);
36

COMPATIBILITY

38       The DROP CAST command conforms to the SQL standard.
39

SEE ALSO

41       CREATE CAST (CREATE_CAST(7))
42
43
44
45PostgreSQL 9.2.24                 2017-11-06                      DROP CAST(7)
Impressum