mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Rearrange extension-related views as per recent discussion.
The original design of pg_available_extensions did not consider the possibility of version-specific control files. Split it into two views: pg_available_extensions shows information that is generic about an extension, while pg_available_extension_versions shows all available versions together with information that could be version-dependent. Also, add an SRF pg_extension_update_paths() to assist in checking that a collection of update scripts provide sane update path sequences.
This commit is contained in:
@ -586,7 +586,7 @@ static const SchemaQuery Query_for_list_of_views = {
|
||||
#define Query_for_list_of_available_extensions \
|
||||
" SELECT pg_catalog.quote_ident(name) "\
|
||||
" FROM pg_catalog.pg_available_extensions "\
|
||||
" WHERE substring(pg_catalog.quote_ident(name),1,%d)='%s' AND installed IS NULL"
|
||||
" WHERE substring(pg_catalog.quote_ident(name),1,%d)='%s' AND installed_version IS NULL"
|
||||
|
||||
/*
|
||||
* This is a list of all "things" in Pgsql, which can show up after CREATE or
|
||||
|
Reference in New Issue
Block a user