1DROP CAST(7) PostgreSQL 11.3 Documentation DROP CAST(7)
2
3
4
6 DROP_CAST - remove a cast
7
9 DROP CAST [ IF EXISTS ] (source_type AS target_type) [ CASCADE | RESTRICT ]
10
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
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
29 RESTRICT
30 These key words do not have any effect, since there are no
31 dependencies on casts.
32
34 To drop the cast from type text to type int:
35
36 DROP CAST (text AS int);
37
39 The DROP CAST command conforms to the SQL standard.
40
42 CREATE CAST (CREATE_CAST(7))
43
44
45
46PostgreSQL 11.3 2019 DROP CAST(7)