Skip to content

Commit e82da75

Browse files
committed
Move changes to pg_lake_iceberg--3.3--3.4.sql
Signed-off-by: sfc-gh-npuka <naisila.puka@snowflake.com>
1 parent 947839d commit e82da75

2 files changed

Lines changed: 26 additions & 26 deletions

File tree

pg_lake_iceberg/pg_lake_iceberg--3.2--3.3.sql

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,3 @@ CREATE OR REPLACE VIEW pg_catalog.iceberg_tables AS
1414
SELECT catalog_name, table_namespace, table_name, metadata_location, previous_metadata_location
1515
FROM lake_iceberg.tables
1616
WHERE metadata_location IS NOT NULL;
17-
18-
/*
19-
* iceberg_catalog foreign data wrapper: allows defining named catalog
20-
* configurations via CREATE SERVER so that users are not limited to a
21-
* single global REST catalog configured through GUC settings.
22-
*
23-
* Example:
24-
* CREATE SERVER my_polaris TYPE 'rest'
25-
* FOREIGN DATA WRAPPER iceberg_catalog
26-
* OPTIONS (rest_endpoint 'http://polaris:8181',
27-
* rest_auth_type 'default',
28-
* client_id '...',
29-
* client_secret '...');
30-
*
31-
* CREATE TABLE t (a int) USING iceberg WITH (catalog = 'my_polaris');
32-
*/
33-
CREATE FUNCTION lake_iceberg.iceberg_catalog_validator(text[], oid)
34-
RETURNS void
35-
AS 'MODULE_PATHNAME'
36-
LANGUAGE C STRICT;
37-
38-
CREATE FOREIGN DATA WRAPPER iceberg_catalog
39-
NO HANDLER
40-
VALIDATOR lake_iceberg.iceberg_catalog_validator;
41-
42-
GRANT USAGE ON FOREIGN DATA WRAPPER iceberg_catalog TO lake_write;
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,27 @@
11
-- Upgrade script for pg_lake_iceberg from 3.3 to 3.4
2+
3+
/*
4+
* iceberg_catalog foreign data wrapper: allows defining named catalog
5+
* configurations via CREATE SERVER so that users are not limited to a
6+
* single global REST catalog configured through GUC settings.
7+
*
8+
* Example:
9+
* CREATE SERVER my_polaris TYPE 'rest'
10+
* FOREIGN DATA WRAPPER iceberg_catalog
11+
* OPTIONS (rest_endpoint 'http://polaris:8181',
12+
* rest_auth_type 'default',
13+
* client_id '...',
14+
* client_secret '...');
15+
*
16+
* CREATE TABLE t (a int) USING iceberg WITH (catalog = 'my_polaris');
17+
*/
18+
CREATE FUNCTION lake_iceberg.iceberg_catalog_validator(text[], oid)
19+
RETURNS void
20+
AS 'MODULE_PATHNAME'
21+
LANGUAGE C STRICT;
22+
23+
CREATE FOREIGN DATA WRAPPER iceberg_catalog
24+
NO HANDLER
25+
VALIDATOR lake_iceberg.iceberg_catalog_validator;
26+
27+
GRANT USAGE ON FOREIGN DATA WRAPPER iceberg_catalog TO lake_write;

0 commit comments

Comments
 (0)