-
Notifications
You must be signed in to change notification settings - Fork 67
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
errors on functions on branches r0.7 and master #103
Comments
Added a test in a branch. That was mostly to recall how to make tests here. By the way I've answered some of my above questions by looking at my own commits a few years ago :) |
I chose to make the approach in |
As explained in 692ef0c comment, this bug is not closed, please re-open it and assign it to dbtoyaml. |
This is a test suite patch showing the problem. The first test fails. The second pass but is there to check regressions.
|
@dvarrazzo Hello Daniele, I'm getting a failure on test
The PG 13 docs say "The form of CREATE LANGUAGE that does not supply any handler function is obsolete. For backwards compatibility with old dump files, it is interpreted as CREATE EXTENSION." So in essence, the test function is no longer about language creation but about extensions. |
Hello @jmafc from the sound of it it seems that the test is not valid on PG>=13 indeed and I would skip it. I thought that before PG13 languages couldn't be into extensions, but that's not the case, I see the usual stanza
in For a more comprehensive solution of several problems that I remember Pyrseas had, I think the program should stop special-casing the objects living in extensions. Right now all objects queries skip objects belonging to an extension using a condition similar to the above sample, but this leaves holes when you try to rebuild puzzles. I think all those objects should be included and be part of the dependencies tracking. Only on output, you can consider if they are part of an extension and so don't try to create/delete them but rather manage just the extension. ISTM that handling cases like this would just derive naturally from the new behaviour (a function would depend on the language, but the statement run would be a CREATE EXTENSION). |
master and 0.7 maint branches are broken on any function created with plpythonu.
That's caused by 3b99487 which added a filter:
causing plpythonu to be skipped.
The following database is enough to trigger the error:
Meta-problem: when I've found the error I wanted to add a test for it so I started digging inside the test suite. What I haven't discovered to date:
The answers above are probably generic and worth a post to the ML.
The text was updated successfully, but these errors were encountered: