-
Notifications
You must be signed in to change notification settings - Fork 3
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
pgmoneta_ext_promote() #26
Comments
@GuChad369 Can you take this one ? |
Any way to do it is ok |
sure |
The |
Yes, you can do that -- a simple |
I mean, the message can be displayed in the client calling the function |
In PostgreSQL, a warning message is already displayed if the server is not in recovery mode. Below is an example of a custom extension function call and its direct output. postgres=# SELECT pgmoneta_ext_promote();
ERROR: recovery is not in progress
HINT: Recovery control functions can only be executed during recovery.
postgres=# SELECT * FROM pg_promote();
ERROR: recovery is not in progress
HINT: Recovery control functions can only be executed during recovery. |
Yeah, that is enough for debugging - the client for the extension just need to know |
Add a function that basically calls
-- requires
SUPERUSER
-- and return thetrue
/false
valueThe text was updated successfully, but these errors were encountered: