Raul Marin
03bc3436cd
Add more tests for [un-]registering servers
2019-11-04 16:29:18 +01:00
Raul Marin
c740cfa499
CDB_Federated_Server_List_Remote_Columns: Return also type name
2019-11-04 15:18:46 +01:00
Raul Marin
eea0198864
Add CDB_Federated_Server_List_Remote_Columns
2019-10-31 15:29:37 +01:00
Raul Marin
28376ffecb
CDB_Federated_Table_Register works to refresh a table
2019-10-30 13:53:56 +01:00
Raul Marin
f20a007160
CDB_FederatedServerTables: Some comments
2019-10-30 13:27:44 +01:00
Raul Marin
cf6b00dfd8
CDB_FederatedServerListRemote: Improve comments
2019-10-30 13:20:41 +01:00
Raul Marin
cc5fb37abb
CDB_FederatedServer: Improve comments
2019-10-30 13:16:31 +01:00
Raul Marin
b839235801
Add CDB_Federated_Server_List_Registered_Tables
2019-10-30 12:19:30 +01:00
Raul Marin
d5f84784f0
Add CDB_Federated_Table_Unregister
2019-10-30 11:55:02 +01:00
Raul Marin
a26b96347a
Initial implementation of CDB_Federated_Table_Register
2019-10-30 11:40:35 +01:00
Raul Marin
b76b754811
CDB_FederatedServerTables skeleton
2019-10-29 18:53:05 +01:00
Raul Marin
664468b1e5
Rename CDB_FederatedServerListRemote files
2019-10-29 18:51:47 +01:00
Raul Marin
f7ab3d28a8
__CDB_FS_List_Foreign_Schemas_PG: Handle order and ignore pg_% schemas automatically
2019-10-29 18:35:02 +01:00
Raul Marin
144c4e722b
Add federated server list remotes
...
Includes:
- CDB_Federated_Server_List_Remote_Schemas
- CDB_Federated_Server_List_Remote_Tables
2019-10-29 18:26:52 +01:00
Raul Marin
e22aaee5f5
Test re-registration of a server with different options
2019-10-29 16:47:35 +01:00
Raul Marin
da9ff0c750
Reimplement CDB_Federated_Server_Register_PG and CDB_Federated_Server_Unregister
2019-10-29 16:19:46 +01:00
Raul Marin
e6cb03300b
Add auxiliar functions to handle internal naming
2019-10-29 15:38:58 +01:00
Raul Marin
bc7031d872
Move existence check to __CDB_FS_Generate_Object_Name
2019-10-29 13:19:11 +01:00
Raul Marin
1375894e99
CDB_Federated_Server_Unregister: Better error handling
2019-10-29 12:27:07 +01:00
Raul Marin
acf1f2dbd4
WIP: Add CDB_Federated_Server_Unregister
2019-10-28 18:34:46 +01:00
Raul Marin
b475eb4356
Federated Server List
2019-10-28 17:10:53 +01:00
Raul Marin
9469871029
Remove unneeded change
2019-10-23 17:06:47 +02:00
Raul Marin
29397ff929
Make it work without postgis_raster
2019-10-23 14:21:45 +02:00
Raul Marin
34684507cb
Cast sql_identifier to text
2019-10-23 13:46:04 +02:00
Raul Marin
e787b1d097
Missing qualification
2019-10-22 20:09:15 +02:00
Raul Marin
d1eb740a00
Missing qualifications
2019-10-22 19:45:42 +02:00
Raul Marin
8fac0c89eb
python3: Try to adapt pathname2url
2019-10-22 18:06:29 +02:00
Raul Marin
9686ad5cfe
Try to work with both python2 and python3
2019-10-22 16:49:08 +02:00
Raul Marin
048234cd80
CDB_Groups_API: Secure search_path
2019-10-03 18:58:27 +02:00
Raul Marin
a580bedefc
Set safe schema on some functions
2019-10-03 18:58:27 +02:00
Raul Marin
0e891eff7f
Remove cartodb from search path
...
All calls to the extension functions should, and are,
be properly qualified, so there is no need to keep
the cartodb schema in the search_path
2019-10-03 18:58:27 +02:00
Raul Marin
52b3290d26
CDB_TableMetadata: Use secure search_path
2019-10-03 18:58:27 +02:00
Raul Marin
186ee37a57
CDB_Username: Set secure search_path
2019-10-03 18:58:27 +02:00
Raul Marin
0898881470
Oauth: Set secure search_path
2019-10-03 18:58:27 +02:00
Raul Marin
4dfd71639a
CDB_OAuthReassignTableOwnerOnCreation: Use CDB_Conf_GetConf
...
Instead of accessing the cdb_conf table directly
2019-10-03 18:58:27 +02:00
Raul Marin
c6b90aac8a
GhostTables: Set secure search_path
2019-10-03 18:58:27 +02:00
Raul Marin
2f178bd89e
_CDB_SetUp_User_PG_FDW_Server: Minor log changes
2019-10-01 11:02:34 +02:00
Raul Marin
32489c4eab
Ghost tables: Add missing tags
...
- Add materialized views commands.
- Add missing alter trigger.
- Add 'IMPORT FOREIGN SCHEMA' since it might create new tables.
- Add 'DROP EXTENSION' and 'DROP TYPE' since they alter table columns.
- Add 'DROP SCHEMA' and 'DROP SERVER' as they drop tables.
2019-10-01 11:02:34 +02:00
Rafa de la Torre
402d97daa6
Merge remote-tracking branch 'origin/master' into user-defined-fdw
2019-07-17 09:18:35 +02:00
Rafa de la Torre
e41d2ec019
Add a flag to force drop of user FDW and related objects
...
If force = true then it will add the subclause `CASCADE` to the SQL
DDL sentences that support it, otherwise it'll use `RESTRICT` which is
the default and exact opposite.
2019-07-16 17:40:05 +02:00
Rafa de la Torre
3c460f1a85
Add a bunch of RAISE NOTICE's to inform user about progress
2019-07-16 17:03:23 +02:00
Rafa de la Torre
ce1e9ac41c
Prefix all objects created with cdb_fdw_
...
Build the DB objects related to a user FDW with the following form:
`cdb_fdw_name`. This is aimed at easily inspect and filter them.
As requested in code review.
2019-07-16 15:35:35 +02:00
Rafa de la Torre
0f33ee8b22
Prepend an underscore (_) to functions meant to be run by superuser
...
_CDB_SetUp_User_PG_FDW_Server and _CDB_Drop_User_PG_FDW_Server are
meant to be executed by a superuser. Therefore they shouldn't be
considered part of the public API and hence the _CDB_Private_Function
naming convention.
2019-07-16 14:32:32 +02:00
Rafa de la Torre
a32dea0282
Remove SECURITY DEFINER from user-defined FDW's
2019-07-16 13:26:03 +02:00
Rafa de la Torre
3a255df9d0
Rename PG-FDW's-specific functions to _PG_FDW_
...
As per review comment.
2019-07-16 13:14:11 +02:00
Rafa de la Torre
99096d41e0
Drop the role when dropping a user-defined FDW
2019-07-15 17:25:48 +02:00
Rafa de la Torre
3a10ef7e76
Add ability to grant fdw role to org members
2019-07-15 16:54:23 +02:00
Rafa de la Torre
37004db047
Add new function to drop a user-defined foreign server
2019-07-15 16:14:07 +02:00
Rafa de la Torre
70220e04c1
Allow for imports of tables in different source schemas
2019-07-15 13:13:21 +02:00
Gonzalo Riestra
a5cb9f268d
reassign ownership for sequences and functions as well
2019-07-15 12:31:44 +02:00