Alejandro Martínez
9ec5d9000a
Readd update_updated_at function (still used by old tables)
2015-09-09 14:56:34 +02:00
Rafa de la Torre
0057e2ddec
Fix for index generation when renaming table #123
2015-08-27 16:33:46 +02:00
Rafa de la Torre
79cacb8ef4
Modify sampling of table quota trigger #126
2015-08-27 12:52:30 +02:00
Rafa de la Torre
7f63688a2f
New version 0.9.2
2015-08-24 15:20:50 +02:00
Paul Ramsey
8c2252a9cb
Handle text 'the_geom' columns as desired in #117
2015-08-21 13:10:05 -07:00
Rafa de la Torre
5dd497bf20
Fix transformation to webmercator in corner cases #116
2015-08-19 19:37:50 +02:00
Rafa de la Torre
805af3babf
Review of format strings and escaping of id's
...
Just found cartodbfy failed for schema-names-with-dashes. This should
fix it.
2015-08-18 17:05:32 +02:00
Rafa de la Torre
78bf202b17
Fix for schema-with-dashes
2015-08-18 15:41:11 +02:00
Rafa de la Torre
3f588df6f6
Drop function in order to change return value
2015-08-17 15:28:37 +02:00
Rafa de la Torre
565edcb50d
Make cartodbfy return destoid
2015-08-14 16:53:43 +02:00
Rafa de la Torre
b7b5be1f3f
Add minor piece of doc
2015-08-14 16:10:38 +02:00
Rafa de la Torre
72ebc398f8
Recover _CDB_check_prerequisites (sorry, my fault)
2015-08-14 12:30:01 +02: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
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
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
f251e12d35
CDB-4418
2014-10-21 16:19:44 +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
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
Kartones
3c5251e6c6
CDB-3303 Cartodbfication also supporting optional schemas
2014-07-04 15:55:08 +02:00
Sandro Santilli
bc0966c46e
Do not add unique index on cartodb_id if already a primary key
...
Closes #38
2014-06-11 19:21:19 +02:00
Sandro Santilli
f75c256b6e
Another full qualification of CDB_TransformToWebmercator in CDB_CartodbfyTable
2014-06-06 18:09:41 +02:00
Sandro Santilli
d52556c20e
Fully qualify call to CDB_TransformToWebmercator from CDB_CartodbfyTable
2014-06-06 17:28:43 +02:00
Sandro Santilli
ce20009fb2
Workaround PostgreSQL bug possibly triggering infinite loops
...
Implements casting of existing system column values during
cartodbfication using ALTER rather than UPDATE.
It's faster for tables with many rows and works around a
longstanding PostgreSQL bug. See
http://www.postgresql.org/message-id/20140530143150.GA11051@localhost
CDB-3059
2014-05-30 19:24:19 +02:00
Sandro Santilli
cc9cbdb7a7
Typo
2014-05-30 18:35:08 +02:00
Sandro Santilli
ac53d6b000
Formatting only change
2014-05-30 12:22:54 +02:00
Sandro Santilli
004c3c5543
Ensure cartodb_id uses an associated sequence
...
Closes #33
2014-05-28 10:45:42 +02:00
Sandro Santilli
348177d23a
Fix cartodbfication of already-cartodbfied tables in presence of views
...
Closes #30
Includes testcase
2014-05-23 16:54:36 +02:00
Sandro Santilli
102e8bd018
Improve error message on failing CDB_CartodbfyTable
2014-05-23 16:04:54 +02:00
Sandro Santilli
967b7abec0
Try to retain existing cartodb_id values
...
Also reset sequence when original cartodb_id values correctly
cast to integers, and does not keep a backup in that case.
Closes #27
2014-05-22 14:11:09 +02:00
Sandro Santilli
134d2d29b6
Try to cast TEXT typed updated_at and created_at if present
...
If the cast fails we'll still rename those fields and create
new ones. See #27 (cartodb_id is still not done)
2014-05-22 13:10:42 +02:00
Sandro Santilli
f98071cdac
Do not allow cartodbfying tables while no user quota is set
...
Closes #17
Updates tests
2014-05-12 13:27:44 +02:00
Sandro Santilli
2f1fdf5a15
Copy cartodb lib/sql scripts from CDB_CartodbfyTable branch
2014-05-05 17:13:06 +02:00