table of contents
DROPLANG(1) | PostgreSQL 9.2.24 Documentation | DROPLANG(1) |
NAME¶
droplang - remove a PostgreSQL procedural language
SYNOPSIS¶
droplang [connection-option...] langname [dbname]
droplang [connection-option...] --list | -l [dbname]
DESCRIPTION¶
droplang is a utility for removing an existing procedural language from a PostgreSQL database.
droplang is just a wrapper around the DROP EXTENSION (DROP_EXTENSION(7)) SQL command.
Caution
droplang is deprecated and may be removed in a future PostgreSQL release. Direct use of the DROP EXTENSION command is recommended instead.
OPTIONS¶
droplang accepts the following command line arguments:
langname
[-d] dbname, [--dbname=]dbname
-e, --echo
-l, --list
-V, --version
-?, --help
droplang also accepts the following command line arguments for connection parameters:
-h host, --host=host
-p port, --port=port
-U username, --username=username
-w, --no-password
-W, --password
This option is never essential, since droplang will automatically prompt for a password if the server demands password authentication. However, droplang will waste a connection attempt finding out that the server wants a password. In some cases it is worth typing -W to avoid the extra connection attempt.
ENVIRONMENT¶
PGDATABASE, PGHOST, PGPORT, PGUSER
This utility, like most other PostgreSQL utilities, also uses the environment variables supported by libpq (see Section 31.14, “Environment Variables”, in the documentation).
DIAGNOSTICS¶
Most error messages are self-explanatory. If not, run droplang with the --echo option and see under the respective SQL command for details. Also, any default connection settings and environment variables used by the libpq front-end library will apply.
NOTES¶
Use createlang(1) to add a language.
EXAMPLES¶
To remove the language pltcl:
$ droplang pltcl dbname
SEE ALSO¶
createlang(1), DROP EXTENSION (DROP_EXTENSION(7)), DROP LANGUAGE (DROP_LANGUAGE(7))
2017-11-06 | PostgreSQL 9.2.24 |