Sandro Santilli
0082138503
Do not force DROP FUNCTION but rely on CREATE OR REPLACE
...
We'll bet on no old signature being left around.
Presence of an old signature would break at runtime
with a message like:
ERROR: function CDB_UserTables() is not unique
Closes #25
10 years ago
Sandro Santilli
eecab6e24c
Remove CDB_SearchPath.sql from the set of scripts loaded directly
...
It still gets loaded as part of extension creation
10 years ago
Sandro Santilli
21e68081f9
Fix extension requires directive
11 years ago
Sandro Santilli
2f0031e6a2
Do not call CDB_Invalidate_Varnish() if not owned by a superuser
...
Search for that function in schemas cartodb and public (in that order).
Closes #24
11 years ago
Sandro Santilli
ca4ce102bb
Refuse to create new extension if legacy code is present on database
...
Closes #20
11 years ago
Sandro Santilli
02575155ce
Complain if script is sourced in psql, rather than via CREATE EXTENSION
11 years ago
Sandro Santilli
fdc58cde73
Migrate user quota on cartodb extension creation from unpackaged
...
See #18
11 years ago
Sandro Santilli
8d6188e282
Have _CDB_UserQuotaInBytes() take precedence over parameter-based quota
...
Closes #16
11 years ago
Sandro Santilli
f98071cdac
Do not allow cartodbfying tables while no user quota is set
...
Closes #17
Updates tests
11 years ago
Sandro Santilli
e6b02de9aa
Disable roles creation in extension-less installs
11 years ago
Sandro Santilli
cfd8dbc5a4
Test calls to CDB_Invalidate_Varnish
...
Also drops the DELETE trigger on CDB_TableMetadata as the call to
CDB_Invalidate_Varnish would then get an OID, which is pretty useless.
Closes #8
11 years ago
Sandro Santilli
b69ded8f66
Let CDB_CheckQuota second parameter override configured user quota
...
Closes #13
Includes automated test
11 years ago
Sandro Santilli
1643ae2db1
Sleep less in the DDL hooks test
...
Closes #9
Hopefully travis is not too slow to fail this...
11 years ago
Sandro Santilli
402d04baf4
Update instructions to install in existing cartodb databases
...
Mentions postgis extension needs to be created from unpackaged when
migrating existing cartodb databases. See #6 .
11 years ago
Sandro Santilli
155844cbc6
Add travis badge
...
Closes #4 (now succeeds)
11 years ago
Sandro Santilli
4c93f75523
Fix clean rule not to drop CDB_version() method
11 years ago
Sandro Santilli
30186ac8cb
Pretend _CDB_UserQuotaInBytes has to stay in public
...
Fixes run of the testsuite in the pre-extension model
11 years ago
Sandro Santilli
acf3097c3a
Add CDB_SetUserQuotaInBytes function
...
Closes #2
11 years ago
Sandro Santilli
055efe04aa
Do not assume existance of a "publicuser" role in CDB_UserTables
...
Closes #5 (take 2)
11 years ago
Sandro Santilli
1c753b24e5
Do not assume existance of a "publicuser" role
...
Closes #5
11 years ago
Sandro Santilli
0f67b31272
[Travis] Drop env grepping (interrupts the build on no-match)
...
... anyway I only wanted to know if there was any env (there's none)
11 years ago
Sandro Santilli
31e3109784
[Travis] Set client_min_messages=NOTICE as expected by tests
11 years ago
Sandro Santilli
fac0fc81de
[Travis] Load schema_triggers.so as shared, not local preload
...
Doing so should load the library from where is installed by
pg_schema_trigger package
11 years ago
Sandro Santilli
7b7891b390
[Travis] It takes root perms to edit postgresql.conf
11 years ago
Sandro Santilli
46d902df66
[Travis] Configure PostgreSQL to preload schema_triggers.so
11 years ago
Sandro Santilli
fcd80d89cd
Don't forget to install the extension prior to installcheck
11 years ago
Sandro Santilli
0fba58e612
[TRAVIS] PostgreSQL server dev package still needed
...
... postgis instead should be available by default, according to
http://docs.travis-ci.com/user/using-postgresql/#Using-PostGIS
11 years ago
Sandro Santilli
f79462952b
Try postgresql installation the travis way (using addons)
...
See http://blog.travis-ci.com/2013-11-29-postgresql-92-93-now-available/
11 years ago
Sandro Santilli
f6f68f616b
[Travis] Search for postgresql 9.3 packages
11 years ago
Sandro Santilli
37048b5bd4
Tag language as C, show linux standard base release info
11 years ago
Sandro Santilli
cf445c92a7
Explicitly install postgresql-9.3 and postgresql-9.3-client
11 years ago
Sandro Santilli
6b49db5a63
Purge PostgreSQL 9.1 and 9.2
...
They make testing more problematic.
There's likely a better way but we don't support 9.1 and 9.2 anyway
11 years ago
Sandro Santilli
160ea9a3cb
Do not take failures as successes due to "diff" command succeeding
...
Also check which versions of postgresql are installed, to drop 9.1
11 years ago
Sandro Santilli
1460f3b0a8
It's regression.diffs (ending 's') to look at...
11 years ago
Sandro Santilli
b723954b74
Create required test output dir
...
See http://travis-ci.org/CartoDB/cartodb-postgresql/builds/24691945
11 years ago
Sandro Santilli
e1300dc4a6
Get out of schema_trigger dir after install, show regress diff on failure
11 years ago
Sandro Santilli
ac40db6c10
Attempt to fix yaml format
11 years ago
Sandro Santilli
aeca4db9b8
Instruct travis to install schema_triggers
11 years ago
Sandro Santilli
d554a9dd12
Add NEWS file
11 years ago
Sandro Santilli
5d3c63b964
Add cdb_version() function
11 years ago
Sandro Santilli
b8e15dba83
Generate cartodb.control with Makefile-driver version
...
Set version to 0.1dev
11 years ago
Sandro Santilli
0051ff33b3
Add notes about creating "cartodb" extension from unpackaged version
11 years ago
Sandro Santilli
d1a767f343
Re-add the test/Makefile which was available while in cartodb/lib/sql
11 years ago
Sandro Santilli
b3bade740d
Generate script to create migrate from unpackaged
...
Usage: CREATE EXTENSION cartodb FROM unpackaged;
11 years ago
Sandro Santilli
f56221ca25
Add debugging line
11 years ago
Sandro Santilli
255332f949
Update README with info about installing/testing/using
11 years ago
Sandro Santilli
574ce7997d
Do not hard-code session search_path at start of extension
11 years ago
Sandro Santilli
9b6f9e21f2
Stick with user tables being in public
...
... but workaround extension code replacing "public." with "cartodb."
11 years ago
Sandro Santilli
b8adcae6c3
We're not dependent on CartoDB rails/ruby anymore
11 years ago
Sandro Santilli
6119006287
Travis: install postgresql server
...
NOTE: it cannot work until "schema_triggers" can be installed, we
might need to use a fork...
11 years ago