View Issue Details

IDProjectCategoryView StatusLast Update
0009668Talerexchangepublic2025-03-27 16:35
Reporteroec Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status confirmedResolutionopen 
Product Versiongit (master) 
Target Versionpost-1.0 
Summary0009668: Potentially change the SQL versioning framework to use schema scopes for versions
DescriptionRight now, SQL functions like `create_table_foo` are in a global scope.
This has created friction when dropping and re-creation of a table becomes necessary.
Similarly, all functions like `alter_table_foo` and `constraint_table_foo` can only
exist once in the global namespace.

Right now we do have workarounds by using digit-suffixes, like `alter_table_foo5`, to
overcome this, and that works for `alter` and `constraint` actions, but fail for `create`.

Instead, we should try and place the functions for each version into their own schema,
f.e. in `0023-exchange.sql.in` starting with a `SEARCH exchange-0023;` statement.
Additional InformationIt is not clear if this approach will work easily and if the function themselves would
need to be aware of the schemata and their logic get more complicated.

We need to try and figures this out.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-03-27 15:59 oec New Issue
2025-03-27 15:59 oec Status new => assigned
2025-03-27 15:59 oec Assigned To => Christian Grothoff
2025-03-27 16:35 Christian Grothoff Assigned To Christian Grothoff =>
2025-03-27 16:35 Christian Grothoff Status assigned => confirmed