Commit Graph
1079 Commits
Author SHA1 Message Date
Rafa de la Torre d378ca6fe0 Test for missing foreign CDB_TableMetadata 2019-07-03 16:25:16 +02:00
Rafa de la Torre 446f4113d9 Return NULL instead of NOW()
The absence of foreign CDB_TableMetadata actually means that we cannot
really tell when a remote table was modified.

Therefore we're using NULL with the meaning of "I don't know when it
was last modified".

To be taken in other caching layers, to adjust headers accordingly.
2019-07-03 16:19:46 +02:00
Rafa de la Torre b0b4a92240 Add a test case for missing foreign CDB_Tablementadata 2019-06-28 16:19:57 +02:00
Rafa de la Torre c06d24aa19 Make CDB_Get_Foreign_Updated_At robust to missing CDB_TableMetadata
This may happen with non-carto DB's, when checking the updated_at
times and not finding the corresponding remote.cdb_tablemetadata
imported from the foreign non-carto DB.

Instead of failing, return a NOW() timestampt, so that caching logic
just assumes there may have been changes.

This makes it work today, and leaves open the possibility of adding
the required carto metadata for homogeneous caching in the future.
2019-06-28 16:25:52 +02:00
Gonzalo Riestra 2e665a56b4 release 0.27.2 0.27.2 2019-06-21 09:19:04 +02:00
Gonzalo Riestra 1e8ef2e1d9 Merge pull request #360 from CartoDB/fix-ghost-tables-trigger
Improve Ghost Tables functions
2019-06-21 09:15:20 +02:00
Gonzalo Riestra e6ecde4346 add CREATE/ALTER/DROP FOREIGN TABLE to ddl commands 2019-06-20 11:20:48 +02:00
Gonzalo Riestra 2d42e6197a use bigint to store values from txid_current() 2019-06-20 11:20:03 +02:00
Gonzalo Riestra 5605fdd9b2 fix event trigger 2019-06-19 15:27:28 +02:00
Sergio Conde Gómez ab7082d4c3 Merge pull request #359 from CartoDB/fix_carto-package
Fix carto-package requirements to be SemVer compliant
2019-06-17 13:40:35 +02:00
Sergio Conde Gomez f9ac627e0e Fix carto-package requirements to be SemVer compliant 2019-06-17 13:33:24 +02:00
Raul Marin cc2066ea89 Release 0.27.1 0.27.1 2019-06-03 17:57:42 +02:00
Raúl Marín aa380171b4 Merge pull request #358 from Algunenano/missing
Add missing qualifications
2019-06-03 16:26:10 +02:00
Raul Marin a43abb37e0 Add missing qualifications 2019-06-03 15:22:52 +02:00
Raul Marin 787b513715 Release 0.27.0 0.27.0 2019-06-03 12:51:25 +02:00
Raúl Marín 362af5e6a0 Merge pull request #357 from Algunenano/full_schema_rebase
Qualify all function calls
2019-06-03 12:45:04 +02:00
Raul Marin 8dbd797429 Update CONTRIBUTING.md 2019-06-03 12:31:06 +02:00
Raul Marin 57ac26cbe7 Travis: Add PG 9.6 to the test matrix 2019-05-31 16:26:07 +02:00
Raul Marin 010cbe6e18 Remove unnecessary changes 2019-05-31 15:52:55 +02:00
Raul Marin 8e68f2a0a7 Add NEWS 2019-05-31 15:38:29 +02:00
Raul Marin 52aab9d564 Raise minimum requirement to Postgis 9.6 2019-05-31 15:37:15 +02:00
Raul Marin 06f563bb73 Tests: Only create publicuser if necessary
Also, don't try to drop it since it's used by default
CARTO installation
2019-05-31 15:37:15 +02:00
Raul Marin 78077a6ec1 Bash tests improvements
- Stop loading sql files manually.
- Make tests independent.
- Single DB setup (not once per test)
2019-05-31 15:37:15 +02:00
Raul Marin c45ef6c540 Fully qualify function calls 2019-05-31 15:37:15 +02:00
Gonzalo Riestra 07d43275f8 Merge pull request #354 from CartoDB/update-readme
Add Redis dependency to Readme
2019-05-23 10:58:33 +02:00
Gonzalo Riestra ec38444b7d better link 2019-05-23 08:12:57 +02:00
Gonzalo Riestra ee9010dc23 add redis module to dependencies in readme 2019-05-23 08:03:37 +02:00
Gonzalo Riestra 74210c5b5c release 0.26.1 0.26.1 2019-03-19 17:43:36 +01:00
Gonzalo Riestra d14d1d9994 Merge pull request #351 from CartoDB/remove_default_tis_config
Remove default TIS config in Ghost Table function
2019-03-14 12:23:06 +01:00
Gonzalo Riestra 5b19d0fc5e fix test correctly 2019-03-14 12:08:33 +01:00
Gonzalo Riestra 2baee24f30 fix test 2019-03-14 11:47:41 +01:00
Gonzalo Riestra 85d6164956 add log when there is no tig config 2019-03-14 11:39:10 +01:00
Gonzalo Riestra a5b2b66bb6 fix test comment 2019-03-14 10:06:04 +01:00
Gonzalo Riestra 3faa389860 improve logs 2019-03-13 18:16:08 +01:00
Gonzalo Riestra bc5d532735 remove default TIS config 2019-03-13 18:12:48 +01:00
Gonzalo Riestra 4f3d19ce7a Merge pull request #350 from CartoDB/explicit-schema-for-ghost-tables
Add explicit schema for Ghost Tables functions
2019-03-13 10:42:13 +01:00
Gonzalo Riestra 45fed9cf1b more explicit schemas 2019-03-13 10:29:50 +01:00
Gonzalo Riestra e19489144c simplify queries 2019-03-13 09:08:13 +01:00
Gonzalo Riestra 83707297de add explicit schema for all functions 2019-03-12 18:39:48 +01:00
Gonzalo Riestra 2f40261b8d Merge pull request #349 from CartoDB/ghost_tables
Ghost tables functions
0.26.0
2019-03-11 15:29:17 +01:00
Gonzalo Riestra b1202011f6 update news 2019-03-11 15:28:48 +01:00
Gonzalo Riestra 65d51fd8bd move cdb_ddl_execution table creation/drop to functions 2019-03-11 14:02:45 +01:00
Gonzalo Riestra 1a271d977b bump version 2019-03-11 12:24:14 +01:00
Gonzalo Riestra 9c6294d95b move trigger drop/creation inside functions 2019-03-11 11:28:45 +01:00
Gonzalo Riestra c7bba14e9a simplify code 2019-03-11 09:20:05 +01:00
Gonzalo Riestra 667f896cfb add again views to the trigger 2019-03-08 13:21:11 +01:00
Gonzalo Riestra cc1df0a708 use redis module version from carto 2019-03-08 13:01:56 +01:00
Gonzalo Riestra d1ee383d9b add redis module for python to travis 2019-03-08 12:50:51 +01:00
Gonzalo Riestra a794fb3d31 read tis config from cdb_conf 2019-03-08 12:03:55 +01:00
Gonzalo Riestra 50e41179fc fix test 2019-03-08 09:18:46 +01:00