|
| 1 | +# Extensions installed on server |
| 2 | + |
| 3 | +SELECT name, default_version, installed_version, left(comment,30) As comment |
| 4 | +FROM pg_available_extensions |
| 5 | +WHERE installed_version IS NOT NULL |
| 6 | +ORDER BY name; |
| 7 | + |
| 8 | +# Output example: |
| 9 | + |
| 10 | +name | def | installed | com |
| 11 | +---------------+-------+-----------+-------------------------------------------- |
| 12 | +btree_gist | 1.0 | 1.0 | support for indexing common datatypes in.. |
| 13 | +fuzzystrmatch | 1.0 | 1.0 | determine similarities and distance betw.. |
| 14 | +hstore | 1.2 | 1.2 | data type for storing sets of (key, valu.. |
| 15 | +plpgsql | 1.0 | 1.0 | PL/pgSQL procedural language.. |
| 16 | +plv8 | 1.3.0 | 1.3.0 | PL/JavaScript (v8) trusted procedural la.. |
| 17 | +postgis | 2.1.3 | 2.1.3 | PostGIS geometry, geography, and raster .. |
| 18 | +www_fdw | 0.1.8 | 0.1.8 | WWW FDW - extension for handling differe.. |
| 19 | + |
| 20 | +#To get more details about a particular extension already installed on your server, enter |
| 21 | +#the following command from psql: |
| 22 | + |
| 23 | +\dx+ fuzzystrmatch |
| 24 | + |
| 25 | +#Alternatively, execute the following query: |
| 26 | + |
| 27 | +SELECT pg_catalog.pg_describe_object(d.classid, d.objid, 0) AS description |
| 28 | +FROM pg_catalog.pg_depend AS D INNER JOIN pg_catalog.pg_extension AS E |
| 29 | +ON D.refobjid = E.oid |
| 30 | +WHERE D.refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass AND deptype |
| 31 | += 'e' AND E.extname = 'fuzzystrmatch'; |
| 32 | + |
| 33 | +# This shows what’s packaged in the extension: |
| 34 | +# Output example: |
| 35 | + |
| 36 | +description |
| 37 | +---------------------------------------------------------------------------- |
| 38 | +function dmetaphone_alt(text) |
| 39 | +function dmetaphone(text) |
| 40 | +function difference(text,text) |
| 41 | +function text_soundex(text) |
| 42 | +function soundex(text) |
| 43 | +function metaphone(text,integer) |
| 44 | +function levenshtein_less_equal(text,text,integer,integer,integer,integer) |
| 45 | +function levenshtein_less_equal(text,text,integer) |
| 46 | +function levenshtein(text,text,integer,integer,integer) |
| 47 | +function levenshtein(text,text) |
0 commit comments