Commit
…103. * pyrseas/database.py: If running in PG 9.1+, select the list of pg_pltemplate languages and pass it to the languages link_refs method. * pyrseas/dbobject/language.py: Use the list of languages and not just plpgsql. * tests/dbobject/test_function.py: New test, courtesy of DVarrazzo.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,7 +124,10 @@ def __init__(self, config): | |
|
||
def _link_refs(self, db): | ||
"""Link related objects""" | ||
db.languages.link_refs(db.functions) | ||
if self.dbconn.version >= 90100: | ||
langs = [lang[0] for lang in self.dbconn.fetchall( | ||
"SELECT tmplname FROM pg_pltemplate")] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jmafc
Author
Member
|
||
db.languages.link_refs(db.functions, langs) | ||
copycfg = {} | ||
if 'datacopy' in self.config: | ||
copycfg = self.config['datacopy'] | ||
|
Joe, is this
pg_pltemplate
filtering doing the right thing? Because it seems the source of all the problems. I mean, ISTM you added this check to work around the problems with the plv8 language, but these had to be solved by checking its belonging to an exception. Just wanted to know because I'll end up hacking on that table later on, when working at the dependencies between extensions and languages.Anyway, once I'm back hacking on pyrseas (probably later) I'll see if master is working now with my testing db (i.e. if there's no regression compared to 0.7.1). If it works I'll try to rebase the deptrack branch on master.