Mario de Frutos Dieguez
3eb8ab24d8
Improved tests
2019-07-04 17:48:01 +02:00
Mario de Frutos Dieguez
0f1c98c743
Check for empty strings as well
2019-07-04 17:48:01 +02:00
Mario de Frutos Dieguez
8ecd2cd5e2
Reuser creator_role
...
Co-Authored-By: Alberto Romeu <alrocar@users.noreply.github.com>
2019-07-04 17:48:00 +02:00
Mario de Frutos Dieguez
f4be59cae0
Added tests
2019-07-04 17:48:00 +02:00
Mario de Frutos Dieguez
fe66b2865a
Upgrade version to 0.29.0
2019-07-04 17:48:00 +02:00
Mario de Frutos Dieguez
2be9d2d81a
Enable OAuth scripts
2019-07-04 17:47:36 +02:00
Mario de Frutos Dieguez
5744921065
OAuth functions
...
- Create/drop reassign event trigger and the function with the logic
- Function that reassings owner to ownership role if defined
2019-07-04 17:47:36 +02:00
Rafa de la Torre
4c93258cd2
Prepare release of 0.28.1
2019-07-04 16:09:53 +02:00
Javier Goizueta
bf140890d8
Merge pull request #365 from CartoDB/table-syncer-notmps
...
Sync tables without using temporary hash tables
2019-07-04 16:05:21 +02:00
Rafa de la Torre
29a31d4c40
Merge pull request #362 from CartoDB/fdw-affected-tables
...
Make CDB_Get_Foreign_Updated_At robust to missing CDB_TableMetadata
2019-07-04 16:02:46 +02:00
Javier Goizueta
dbd403a2f6
Fix cases of double-quoting identifiers
2019-07-04 12:47:58 +02:00
Javier Goizueta
cb353ec6a8
Add tests for quoted table & column names
2019-07-04 12:47:01 +02:00
Javier Goizueta
2beabfced6
Add test for double schema-quoting
2019-07-03 18:48:49 +02:00
Javier Goizueta
7bdee5c13e
Avoid double-quoting
...
Since dst_schema is a REGNAMESPACE, it is automatically quoted when casted to TEXT
2019-07-03 18:34:54 +02:00
Javier Goizueta
c07784566a
NEWS for next release
2019-07-03 17:02:36 +02:00
Javier Goizueta
2e1fe2933c
Fix whitespace
2019-07-03 16:56:29 +02:00
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
Javier Goizueta
5963c67376
Order the columns of a cartodbfied table consistently
...
The final order of the columns of a cartodbfied table wasn't uniquely specified, so could vary across PG versions.
This was a problem in particular for having deterministic test results.
2019-07-03 16:16:37 +02:00
Javier Goizueta
f5f18ca57c
Fix the order of the columns
2019-07-02 18:14:18 +02:00
Javier Goizueta
d8c840d126
Quote table and column names when necessary
...
Also use type NAME when appropriate. Note that quoted column names are not NAMES (may be longer).
2019-07-02 18:14:04 +02:00
Javier Goizueta
65483743b4
Remove unused vars
2019-07-02 17:44:06 +02:00
Javier Goizueta
4651883454
Fix order of test results
2019-07-02 17:43:13 +02:00
Javier Goizueta
470bae6268
Merge branch 'master' into table-syncer-notmps
...
# Conflicts:
# scripts-available/CDB_SyncTable.sql
2019-07-02 12:21:49 +02:00
Javier Goizueta
75ba13b834
Merge pull request #364 from CartoDB/synctable-doc
...
Document CDB_SyncTable
2019-07-02 10:20:24 +02:00
Javier Goizueta
057695361d
Fix typo
2019-07-01 17:49:42 +02:00
Javier Goizueta
0e1aeb0a76
Minor copy edit
2019-07-01 17:00:22 +02:00
Javier Goizueta
f2dae651b3
More complete sync table example
2019-07-01 16:58:24 +02:00
Javier Goizueta
9f414938ba
Document CDB_SyncTable
2019-07-01 16:41:40 +02:00
Javier Goizueta
4f7b07f922
Merge pull request #363 from CartoDB/fix-sync-schema
...
Fix cartodb schema references
2019-07-01 16:15:25 +02:00
Javier Goizueta
69cc56b589
Remove schema from public function examples
2019-07-01 15:13:48 +02:00
Javier Goizueta
1028b24333
Fix cartodb schema references
2019-07-01 14:48:42 +02:00
Javier Goizueta
4d1c4f6a22
Release 0.28.0
2019-07-01 10:56:06 +02:00
Javier Goizueta
83ab128a01
Merge pull request #355 from CartoDB/table-syncer
...
[WIP] Table syncer
2019-07-01 10:49:06 +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
Javier Goizueta
4f4df2de8d
Merge branch 'table-syncer' into table-syncer-notmps
2019-06-28 15:28:06 +02:00
Javier Goizueta
b5f36902c5
Merge branch 'master' into table-syncer
2019-06-28 13:50:46 +02:00
Javier Goizueta
0bcbf6708a
Remove usage of temporary tables
2019-06-28 13:49:15 +02:00
Gonzalo Riestra
2e665a56b4
release 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
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
2019-06-03 12:51:25 +02:00