Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
6a9e09c4
Commit
6a9e09c4
authored
Aug 03, 2016
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing casts in information schema
From: Clément Prévost <prevostclement@gmail.com>
parent
2b8fd4fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/backend/catalog/information_schema.sql
src/backend/catalog/information_schema.sql
+5
-5
No files found.
src/backend/catalog/information_schema.sql
View file @
6a9e09c4
...
...
@@ -2742,9 +2742,9 @@ CREATE VIEW _pg_foreign_table_columns AS
*/
CREATE
VIEW
column_options
AS
SELECT
CAST
(
current_database
()
AS
sql_identifier
)
AS
table_catalog
,
c
.
nspname
AS
table_schema
,
c
.
relname
AS
table_name
,
c
.
attname
AS
column_name
,
CAST
(
c
.
nspname
AS
sql_identifier
)
AS
table_schema
,
CAST
(
c
.
relname
AS
sql_identifier
)
AS
table_name
,
CAST
(
c
.
attname
AS
sql_identifier
)
AS
column_name
,
CAST
((
pg_options_to_table
(
c
.
attfdwoptions
)).
option_name
AS
sql_identifier
)
AS
option_name
,
CAST
((
pg_options_to_table
(
c
.
attfdwoptions
)).
option_value
AS
character_data
)
AS
option_value
FROM
_pg_foreign_table_columns
c
;
...
...
@@ -2849,8 +2849,8 @@ GRANT SELECT ON foreign_servers TO PUBLIC;
CREATE
VIEW
_pg_foreign_tables
AS
SELECT
CAST
(
current_database
()
AS
sql_identifier
)
AS
foreign_table_catalog
,
n
.
nspname
AS
foreign_table_schema
,
c
.
relname
AS
foreign_table_name
,
CAST
(
n
.
nspname
AS
sql_identifier
)
AS
foreign_table_schema
,
CAST
(
c
.
relname
AS
sql_identifier
)
AS
foreign_table_name
,
t
.
ftoptions
AS
ftoptions
,
CAST
(
current_database
()
AS
sql_identifier
)
AS
foreign_server_catalog
,
CAST
(
srvname
AS
sql_identifier
)
AS
foreign_server_name
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment