-
Notifications
You must be signed in to change notification settings - Fork 342
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
possibility to force transformation procedures to functions #1830
Comments
Hi Pavel, Normally you just have to set PG_VERSION to the version of the PostgreSQL server. If you set it to 10 then PG_SUPPORTS_PROCEDURE will be disabled. |
po 21. 10. 2024 v 4:12 odesílatel Gilles Darold ***@***.***>
napsal:
Hi Pavel,
Normally you just have to set PG_VERSION to the version of the PostgreSQL
server. If you set it to 10 then PG_SUPPORTS_PROCEDURE will be disabled.
ok. I think it can work now, because there are no extra features used by my
customer like virtualcol and outparams.
Byt maybe for these feature related flags there can be some force overwrite
options? It is mainly for compatibility reasons - the customer has been
working on migration for more than 6 years, and too big changes of ora2pg
based on PostgreSQL releases is problematic.
or PG_SUPPORTS_PROCEDURE can have three states ... "on", "off" and "auto" -
and default can be "auto"
… —
Reply to this email directly, view it on GitHub
<#1830 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEFO476IUEF4SV6MRDA6ADZ4RPJFAVCNFSM6AAAAABQIEKGIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRVGQYTKOJZHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Commit 0a22650 might support overriding of the PG_VERSION automatic adjustment of these PG_SUPPORT_* variables. If they are defined in the configuration file, they take precedence onto the PG_VERSION behavior, whether they are disabled or enabled. |
po 21. 10. 2024 v 8:57 odesílatel Gilles Darold ***@***.***>
napsal:
Commit 0a22650
<0a22650>
might support overriding of the PG_VERSION automatic adjustment of these
PG_SUPPORT_* variables.
If they are defined in the configuration file, they take precedence onto
the PG_VERSION behavior, whether they are disabled or enabled.
great
Thank you very much
Pavel
… —
Reply to this email directly, view it on GitHub
<#1830 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEFO44X5OVFECPYJD4O5ELZ4SQUBAVCNFSM6AAAAABQIEKGIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRVG43TCMJQGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
My customer did some tests and, unfortunately, reported few issues:
Oracle:
Older ora2pg
Current Ora2pg
|
Thanks Pavel. Commit 4d1696c might solve this issue. |
I have check report from my customer. He found still one issue. When procedure has more OUT arguments, then migration is ok, but when procedure has just one OUT argument, then there is a problem, because ora2pg produces function like
And this doesn't work
|
Hi Pavel, Here is an Oracle function with a single out parameter and e return value:
It is correctly translated by ora2pg into
Then when using it it returns the right result:
|
Note that I have fix a wrong translation of OUT to INOUT in new commit cbb61c6 |
With this commit an Oracle function defined as follow:
is translated into
which returns the expected result:
|
Unfortunately, it is not fixed (on procedures). It was not when Oracle's procedures are converted to postgres functions. |
My customer reported, so there is not possibility to ensure old behaviour of transformation procedures on modern postgres.
PG_SUPPORTS_PROCEDURE is implicitly set for PostgreSQL v11+. Can be nice to have some option that forces old behaviour.
The text was updated successfully, but these errors were encountered: