Skip to content
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

Use pg_available_extensions() instead of pg_pltemplate for postgres 13 compatibility #227

Merged
merged 1 commit into from
Apr 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyrseas/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def diff_map(self, input_map, quote_reserved=True):
fetch_reserved_words(self.dbconn)

langs = [lang[0] for lang in self.dbconn.fetchall(
"SELECT tmplname FROM pg_pltemplate")]
"SELECT name FROM pg_available_extensions() INNER JOIN pg_language ON name = lanname;")]
self.from_map(input_map, langs)
if opts.revert:
(self.db, self.ndb) = (self.ndb, self.db)
Expand Down