DASSL / ClassDB

An open-source system to let students experiment with relational data
https://dassl.github.io/ClassDB/
Other
8 stars 2 forks source link

Guard use of pg_signal_backend #266

Closed smurthys closed 6 years ago

smurthys commented 6 years ago

The changes in this PR guard the use of the predefined server role pg_signal_backend only in versions 9.6 or later. Fixes #225

Note: Using the server version to address this issue is technically incorrect because the functionality in question is determined by the existence of a specific server role which can be tested in the pg_roles table. However, testing for server version is more practical and maintainable, and we should be able to trust no one has removed a server role. (We make many such assumptions about the environment.)

smurthys commented 6 years ago

Thanks for the reviews.