Paul Ramsey
7f55a0263b
Fix regclass mismatch on column alter/drop
...
This logic SHOULD BE MOVED TO Cartodbfy internals.
2015-08-13 16:10:23 -07:00
Paul Ramsey
d268cd07cb
Fix many tests and handle ownership issues involved
...
with Cartodbfy being invoked by schema triggers. Some
issues with regclass interpretation in tests still remain.
Some issues with slightly different behavior to old version
remain. Some issues with error messages / notification messages
changing a little still remain.
2015-08-13 15:59:45 -07:00
Rafa de la Torre
a5321ec7a5
Replace CDB_CartodbfyTable by new CartodbfyTable2
...
- Delete old CDB_CartodbfyTable code
- Delete auxiliary functions no longer used
- Modify the new CDB_CartodbfyTable signature to be backwards
compatible.
2015-08-12 18:39:07 +02:00
Rafa de la Torre
c00d607ee2
Merge pull request #107 from CartoDB/new_cartodbfy_rtorre
...
Do not create timestamp columns/triggers on cartodbfy
2015-08-12 18:34:33 +02:00
Rafa de la Torre
8c41203db6
Fix for the_geom does not exist
...
When creating triggers, expectation is to have the columns the_geom and
the_geom_webmercator even if the source table does not have any geometry
columns. Populate it in the rewrite with NULL values and right types.
2015-08-12 17:34:47 +02:00
Rafa de la Torre
d6afdf751f
Do not create timestamp columns/triggers on cartodbfy
2015-08-11 19:07:01 +02:00
Paul Ramsey
1a1f45cdad
Add raster table calls, like the old function has
2015-08-11 05:40:31 -07:00
Paul Ramsey
b195aa4b68
Enable trigger addition routine
2015-08-10 08:42:13 -07:00
Paul Ramsey
0899c64d0b
Break routine into two halves
2015-04-22 13:25:11 -07:00
Paul Ramsey
c1bfef25e0
Fix no-op case error
2015-04-22 13:06:34 -07:00
Paul Ramsey
dd209d02f6
Use standard error message format
2015-04-22 12:51:36 -07:00
Paul Ramsey
614a446cba
Document functions a bit more
2015-04-22 09:29:23 -07:00
Paul Ramsey
8dc7f45cca
Re-use columns named 'cartodb_id' if the values of the
...
keys are in fact unique.
2015-04-22 06:33:49 -07:00
Paul Ramsey
74b7740892
Fix bug with missing non-geo columns in case where
...
geo columns are "perfect" to start w/.
2015-04-21 12:59:44 -07:00
Paul Ramsey
bb685795d5
Handle geometry column with no metadata SRID (grrr) but
...
a valid SRID on the geometry objects themselves
2015-04-21 06:58:33 -07:00
Paul Ramsey
14414c4bf3
Fix Rambo's test case, of a single geometry-only table
...
with no SRID in the metadata (thanks mate).
2015-04-21 06:25:35 -07:00
Paul Ramsey
f3c20ac2fb
First draft of new cartodbfy function (named CDB_CartodbfyTable2)
...
Still needs to be fully tested (partially tested now) using
the existing regression tests. Does not manage the timestamp
columns at this time.
2015-04-17 17:53:07 +02:00
Rafa de la Torre
1c9e5f241f
Fix upgrade of CDB_StringToDate function #73
2015-03-03 16:09:57 +00:00
Rafa de la Torre
61804187c8
Fix conversion of strings to datetimes #73
2015-03-03 09:49:33 +00:00
Kartones
0a3d08edc3
#revert-size_calc
2015-02-27 10:53:14 +01:00
Raul Ochoa
ebcca141bd
Adds CDB_ZoomFromScale function. Closes #62
2015-02-19 14:20:35 +01:00
Raul Ochoa
da7b3b7080
Adds CDB_TableMetadataTouch function to be able to upsert updated_at
...
value in cdb_tablemetadata
2015-02-18 17:08:46 +01:00
Raul Ochoa
38fe98d983
Merge branch 'master' into remove-grant-select-from-cdb_tablemetadata-to-public
2015-02-18 15:43:16 +01:00
Kartones
6c7706672f
#69 now using pg_relation_size
2015-02-17 15:40:26 +01:00
javi
519ea075d6
fixed reg exp
2015-02-13 17:32:14 +01:00
javi
0223d00a54
fixed security problem
2015-02-12 10:57:12 +01:00
Raul Ochoa
3cf62ecd2e
Do not grant select permission to public user
...
- Fake the behaviour in tests by switching between users
2015-02-10 15:27:42 +01:00
Rafa de la Torre
693b147ef1
Fix corner case (no tables) in CDB_UserDataSize #65
2015-01-29 15:46:08 +00:00
Rafa de la Torre
a4e42571cd
Add a comment to CDB_UserDataSize (from PR) #65
2015-01-28 17:10:04 +00:00
Rafa de la Torre
bf622ae5a6
Optimize CDB_UserDataSize (on behalf of @javisantana) #65
2015-01-28 16:54:50 +00:00
Kartones
dbb6f42b99
#1368 fixed escapings
2014-12-05 17:30:47 +01:00
Kartones
cd9e44b266
#1138 Fixed DDL triggers to properly use new cartodbfy signature, fixed cartodbfy to properly send params to check raster table
2014-11-19 10:00:04 +01:00
Kartones
fd9d79372f
#1138 Found issue with DDL triggers
2014-11-18 19:00:33 +01:00
Kartones
61b47617b8
#1138 fixes for specs
2014-11-18 17:35:11 +01:00
Kartones
3b5c1f65cb
#1138 Quota changes, raster import cartodbfication and quota spec
2014-11-18 15:24:54 +01:00
Kartones
b7c2336ae0
#1138 not counting raster overviews for quota
2014-11-14 10:34:18 +01:00
Kartones
f251e12d35
CDB-4418
2014-10-21 16:19:44 +02:00
javi
723a08e814
added CDB_Math_mode
2014-08-19 18:09:27 +02:00
Kartones
6c57640901
CDB-3870 replaced priority of qmax inside checkquota
2014-08-11 15:26:13 +02:00
Raul Ochoa
5bb638b995
Merge pull request #45 from CartoDB/CDB-3743
...
CDB_QueryTables returns only results for schemas associated to Relation-Names
2014-08-01 18:14:53 +02:00
Raul Ochoa
2637742c2e
CDB-3743 Makes CDB_QueryTables to return only results for schemas associated to Relation-Names
2014-08-01 18:06:06 +02:00
Kartones
679af1d4a3
CDB-3497 Finished stabilizing specs
2014-07-28 17:53:19 +02:00
Kartones
6d665ab163
CDB-3497 ongoing spec stabilization
2014-07-28 15:16:19 +02:00
Kartones
e5c8015e17
CDB-3497 Splitted
2014-07-28 13:11:51 +02:00
Kartones
f61d07518d
CDB-3497 ongoing splitting
2014-07-28 12:25:42 +02:00
Kartones
b5589fdf09
CDB-3497
2014-07-25 12:19:40 +02:00
Kartones
9500010a67
CDB-3497 Partial splitting
2014-07-25 10:52:46 +02:00
Raul Ochoa
2bd0b223a6
CDB_SetUserQuotaInBytes returning set value instead of previous value.
2014-07-07 10:36:51 +02:00
Raul Ochoa
5806ac8f8d
Force schema so it can calculate the size of the database with the proper schema
2014-07-04 18:50:46 +02:00
Kartones
1c86599f9d
CDB-3094 Discovered that EXECUTE FORMAT seems to quote schema names when it needs to
2014-07-04 16:39:19 +02:00