]> begriffs open source - ai-pg/blob - full-docs/src/sgml/man7/DROP_LANGUAGE.7
PG 18 docs from https://ftp.postgresql.org/pub/source/v18.0/postgresql-18.0-docs...
[ai-pg] / full-docs / src / sgml / man7 / DROP_LANGUAGE.7
1 '\" t
2 .\"     Title: DROP LANGUAGE
3 .\"    Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\"      Date: 2025
6 .\"    Manual: PostgreSQL 18.0 Documentation
7 .\"    Source: PostgreSQL 18.0
8 .\"  Language: English
9 .\"
10 .TH "DROP LANGUAGE" "7" "2025" "PostgreSQL 18.0" "PostgreSQL 18.0 Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 DROP_LANGUAGE \- remove a procedural language
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 DROP [ PROCEDURAL ] LANGUAGE [ IF EXISTS ] \fIname\fR [ CASCADE | RESTRICT ]
36 .fi
37 .SH "DESCRIPTION"
38 .PP
39 \fBDROP LANGUAGE\fR
40 removes the definition of a previously registered procedural language\&. You must be a superuser or the owner of the language to use
41 \fBDROP LANGUAGE\fR\&.
42 .if n \{\
43 .sp
44 .\}
45 .RS 4
46 .it 1 an-trap
47 .nr an-no-space-flag 1
48 .nr an-break-flag 1
49 .br
50 .ps +1
51 \fBNote\fR
52 .ps -1
53 .br
54 .PP
55 As of
56 PostgreSQL
57 9\&.1, most procedural languages have been made into
58 \(lqextensions\(rq, and should therefore be removed with
59 \fBDROP EXTENSION\fR
60 not
61 \fBDROP LANGUAGE\fR\&.
62 .sp .5v
63 .RE
64 .SH "PARAMETERS"
65 .PP
66 IF EXISTS
67 .RS 4
68 Do not throw an error if the language does not exist\&. A notice is issued in this case\&.
69 .RE
70 .PP
71 \fIname\fR
72 .RS 4
73 The name of an existing procedural language\&.
74 .RE
75 .PP
76 CASCADE
77 .RS 4
78 Automatically drop objects that depend on the language (such as functions in the language), and in turn all objects that depend on those objects (see
79 Section\ \&5.15)\&.
80 .RE
81 .PP
82 RESTRICT
83 .RS 4
84 Refuse to drop the language if any objects depend on it\&. This is the default\&.
85 .RE
86 .SH "EXAMPLES"
87 .PP
88 This command removes the procedural language
89 plsample:
90 .sp
91 .if n \{\
92 .RS 4
93 .\}
94 .nf
95 DROP LANGUAGE plsample;
96 .fi
97 .if n \{\
98 .RE
99 .\}
100 .SH "COMPATIBILITY"
101 .PP
102 There is no
103 \fBDROP LANGUAGE\fR
104 statement in the SQL standard\&.
105 .SH "SEE ALSO"
106 ALTER LANGUAGE (\fBALTER_LANGUAGE\fR(7)), CREATE LANGUAGE (\fBCREATE_LANGUAGE\fR(7))