-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
10909 postgresql dialect table options #12584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
10909 postgresql dialect table options #12584
Conversation
These seem to be the most useful table options to pass in most cases anyway. Reflects the implementation in PGDDLCompiler
Reflect dialect specific options passed to `Table` constructor Table options reflected: - postgresql_inherits - postgresql_with - postgresql_with_oids (in supported versions) - postgresql_using - postgresql_tablespace Fixes sqlalchemy#10909
Hi, I've given it a quick glance and great work so far. I'll try taking a better look this week |
- Add pg_tablespace, pg_inherits tables to pg_catalog (not committed originally) - Add test for table using non-default access method - Remove commented code - Correct formatting errors in docs
Cleaned up the implementation slightly, removing commented code and adding a simple test for a table using a non-default access method. Also, I didn't commit the tables I added to |
I'm interested in finishing this, so I'll keep it open |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, this is sqla-tester setting up my work on behalf of CaselIT to try to get revision c629f98 of this pull request into gerrit so we can run tests and reviews and stuff
Failed to create a gerrit review, git squash against branch 'main' failed |
Description
Implements
PGDialect.get_table_options
,PGDialect.get_multi_table_options
and attempts to properly reflect the following dialect specific options passed to theTable
constructorNo attempt was made to reflect
postgresql_partition_by
, as the option is passed as a text string and would be difficult to replicate effectively (also, it's kind of useless without also reflectingpostgresql_partition_of
, but I'd make an attempt at implementing declarative partitioning for postgres if there was interest.Also adds support for passing table storage parameters to
PGDDLCompiler.post_create_table
to the compiler.Fixes issue #10909
Checklist
This pull request is:
must include a complete example of the issue. one line code fixes without an
issue and demonstration will not be accepted.
Fixes: #<issue number>
in the commit messageinclude a complete example of how the feature would look.
Fixes: #<issue number>
in the commit messageHave a nice day!