Skip to content

Conversation

@sfc-gh-okalaci
Copy link
Collaborator

And alternative to #96

This change does 2 things:

  • When a table is created with catalog=obeject_store, the catalog file used to be in defaultPrefix/_catalog/frompg/pg_db.json after this commit: defaultPrefix/frompg/catalog/pg_db.json

  • When an catalog=object_store iceberg table is created, it used to be located in defaultPrefix/dbname/schema/table_name/oid. After this commit: defaultPrefix/frompg/tables/dbname/schema/table_name/oid

The goal is to be able to differentiate the tables written by Postgres, and other systems. The frompg allows this. Also, we can control the access of /catalog folder such that only priviledged users can access that.

This change does 2 things:

- When a table is created with `catalog=obeject_store`, the catalog
file used to be in `defaultPrefix/_catalog/frompg/pg_db.json` after this
commit: `defaultPrefix/frompg/catalog/pg_db.json`

- When an `catalog=object_store` iceberg table is created,
it used to be located in `defaultPrefix/dbname/schema/table_name/oid`.
After this commit: `defaultPrefix/frompg/tables/dbname/schema/table_name/oid`

The goal is to be able to differentiate the tables written by
Postgres, and other systems. The `frompg` allows this. Also,
we can control the access of `/catalog` folder such that only
priviledged users can access that.
Copy link
Collaborator

@sfc-gh-mslot sfc-gh-mslot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this makes sense to me.

@sfc-gh-okalaci sfc-gh-okalaci merged commit fa0a562 into main Dec 3, 2025
63 checks passed
@sfc-gh-okalaci sfc-gh-okalaci deleted the onder/improve_location_prefixes_another_take branch December 3, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants