citusdata / pg_shard

ATTENTION: pg_shard is superseded by Citus, its more powerful replacement
https://github.com/citusdata/citus
GNU Lesser General Public License v3.0
1.06k stars 63 forks source link

Switch to SPI for metadata functions #110

Closed jasonmp85 closed 9 years ago

jasonmp85 commented 9 years ago

In #103, we discovered that using low-level operations is kind of unwieldy when the code needs to switch between different backing stores. By using SPI, we can overlay a VIEW on the CitusDB metadata catalogs and have everything "just work".

This change prepares for that by switching to SPI for our metadata functions. The functions will now respect any VIEW or TRIGGER we need to adapt to CitusDB's underlying representation.