Commit Graph

50 Commits (e81a75b7169a46501026a3d920a008c66885b124)

Author SHA1 Message Date
Raul Ochoa 2bd0b223a6 CDB_SetUserQuotaInBytes returning set value instead of previous value.
10 years ago
Raul Ochoa 5806ac8f8d Force schema so it can calculate the size of the database with the proper schema
10 years ago
Kartones 1c86599f9d CDB-3094 Discovered that EXECUTE FORMAT seems to quote schema names when it needs to
10 years ago
Kartones 3c5251e6c6 CDB-3303 Cartodbfication also supporting optional schemas
10 years ago
Kartones 3d595976f6 CDB-3302 CDB_CheckQuota now also accepts a schema name. Added a convenience method to check if a schema is valid or not
10 years ago
Kartones 021d922d84 CDB-3304 Method cdb_userdatasize now has schema_name param, and added backwards-compatible version without it
10 years ago
Luis Bosque 82f2e7336b Quoted schema references in organization sql
10 years ago
Raul Ochoa 558be8b693 CDB-3094 DELETE permission for read-write rule
10 years ago
Raul Ochoa b98419aeb8 Merge remote-tracking branch 'rambo/cdb_querytables_support_schemas' into CDB-3094
10 years ago
javi da9b9a640f CDB_QueryTables return tables with schema
10 years ago
Raul Ochoa 55efde5039 CDB-3094 Makes organization member group role name unique to database by using the database name md5 hash
10 years ago
Raul Ochoa 12e90ef6a4 CDB-3094 Adds cdb_org_member role group and functions to handle access to tables through it
10 years ago
Raul Ochoa 625b01ed56 CDB-3094 Removes for now the role groups management as it is not clear if we need them
10 years ago
Raul Ochoa 5e5471c474 CDB-3094 changes signature to allow specifying the schema because it does not have to be the role name.
10 years ago
Raul Ochoa 8dec91de87 Merge branch 'master' of https://github.com/CartoDB/cartodb-postgresql into CDB-3094
10 years ago
Raul Ochoa 9a55b03d6f CDB-3094 initial function to share tables/schemas between users within the same database
10 years ago
Sandro Santilli bc0966c46e Do not add unique index on cartodb_id if already a primary key
10 years ago
Sandro Santilli 81bbfcbda8 Drop useless DEFAULT specification in plpgsql variable declarations
10 years ago
Sandro Santilli f75c256b6e Another full qualification of CDB_TransformToWebmercator in CDB_CartodbfyTable
10 years ago
Sandro Santilli d52556c20e Fully qualify call to CDB_TransformToWebmercator from CDB_CartodbfyTable
10 years ago
Sandro Santilli f8180123eb Grant permission to run table-info functions to public
10 years ago
Sandro Santilli 01ae7b8c10 Drop role management
10 years ago
Sandro Santilli f9f73d2d62 Fix potential infinite loop in CDB_QueryStatements
10 years ago
Sandro Santilli a92d7d7d37 Add cdb_extension_reload() utility function
10 years ago
Sandro Santilli ce20009fb2 Workaround PostgreSQL bug possibly triggering infinite loops
10 years ago
Sandro Santilli cc9cbdb7a7 Typo
10 years ago
Sandro Santilli ac53d6b000 Formatting only change
10 years ago
Sandro Santilli f5ad0d0434 Fully qualify call to CDB_UserDataSize from quota trigger
10 years ago
Sandro Santilli bfd56f0ea6 Fully qualify call to cdb_disable_ddl_hooks from cdb_enable_ddl_hooks
10 years ago
Sandro Santilli 004c3c5543 Ensure cartodb_id uses an associated sequence
10 years ago
Sandro Santilli 2601364011 Fix recursive DDL trigger on create table
10 years ago
Sandro Santilli 09cf368d62 Move DDL triggers and extension postamble under scripts-available
10 years ago
Sandro Santilli 348177d23a Fix cartodbfication of already-cartodbfied tables in presence of views
10 years ago
Sandro Santilli 102e8bd018 Improve error message on failing CDB_CartodbfyTable
10 years ago
Sandro Santilli 967b7abec0 Try to retain existing cartodb_id values
10 years ago
Sandro Santilli 134d2d29b6 Try to cast TEXT typed updated_at and created_at if present
10 years ago
Sandro Santilli 0082138503 Do not force DROP FUNCTION but rely on CREATE OR REPLACE
10 years ago
Sandro Santilli 2f0031e6a2 Do not call CDB_Invalidate_Varnish() if not owned by a superuser
11 years ago
Sandro Santilli 8d6188e282 Have _CDB_UserQuotaInBytes() take precedence over parameter-based quota
11 years ago
Sandro Santilli f98071cdac Do not allow cartodbfying tables while no user quota is set
11 years ago
Sandro Santilli cfd8dbc5a4 Test calls to CDB_Invalidate_Varnish
11 years ago
Sandro Santilli b69ded8f66 Let CDB_CheckQuota second parameter override configured user quota
11 years ago
Sandro Santilli 30186ac8cb Pretend _CDB_UserQuotaInBytes has to stay in public
11 years ago
Sandro Santilli acf3097c3a Add CDB_SetUserQuotaInBytes function
11 years ago
Sandro Santilli 055efe04aa Do not assume existance of a "publicuser" role in CDB_UserTables
11 years ago
Sandro Santilli 9b6f9e21f2 Stick with user tables being in public
11 years ago
Sandro Santilli 15740f2ef6 Enable running all tests via "installcheck"
11 years ago
Sandro Santilli 0960276046 Import cartodb/lib/sql/test, add search_path tweaker
11 years ago
Sandro Santilli 5e28417b3d Add "cdb_org_admin" and "cdb_org_user" roles as part of extension
11 years ago
Sandro Santilli 2f1fdf5a15 Copy cartodb lib/sql scripts from CDB_CartodbfyTable branch
11 years ago