Fork me on GitHub
#xtdb
<
2023-11-29
>
Christian Pekeler13:11:41

Hi, we’re currently using XTDB 1 backed by Postgresql for everything. We need to store a lot of data from an external datasource now that wouldn’t benefit from immutability/bitemporality. Is there any argument against storing this data in different tables in the same Postgresql DB, or would it be better to say that the whole DB is owned/managed by XTDB and store other stuff in a separate Postgresql DB?

tatut13:11:48

I’ve done this, just used tables in a different schema

1
💯 1
👍 1
refset16:11:19

Hey @UDQE4G9B2 - I agree that different schemas within the same Postgres instance should work fine 🙂

💯 1
👍 1
richiardiandrea16:11:37

Hey there! We don't bother with different schemas - the tx_events table is pretty evident among the others - what are the benefits of schemas apart from separation of concerns?

refset16:11:41

isolated backup & restore is my first thought (e.g. https://stackoverflow.com/questions/12564777/how-do-i-do-a-schema-only-backup-and-restore-in-postgresql), and maybe it's a useful barrier from a security perspective, but it's far from essential