mirror of https://github.com/citusdata/citus.git
cituscitus-extensiondatabasedatabase-clusterdistributed-databasemulti-tenantpostgrespostgresqlrelational-databasescaleshardingsql
After this change, shards and associated metadata are automatically dropped when running DROP TABLE on a distributed table, which fixes #230. It also adds schema support for master_apply_delete_command, which fixes #73. Dropping the shards happens in the master_drop_all_shards UDF, which is called from the SQL_DROP trigger. Inside the trigger, the table is no longer visible and calling master_apply_delete_command directly wouldn't work and oid <-> name mappings are not available. The master_drop_all_shards function therefore takes the relation id, schema name, and table name as parameters, which can be obtained from pg_event_trigger_dropped_objects() in the SQL_DROP trigger. If the user calls master_drop_all_shards while the table still exists, the schema name and table name are ignored. Author: Marco Slot Reviewed-By: Andres Freund |
||
|---|---|---|
| src | ||
| .gitattributes | ||
| .gitignore | ||
| .travis.yml | ||
| Makefile | ||
| Makefile.global.in | ||
| autogen.sh | ||
| configure | ||
| configure.in | ||
| prep_buildtree | ||