Skip to content

ERROR: must be superuser to examine "shared_preload_libraries" #82

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

Closed
killua001 opened this issue Mar 27, 2017 · 14 comments
Closed

ERROR: must be superuser to examine "shared_preload_libraries" #82

killua001 opened this issue Mar 27, 2017 · 14 comments
Assignees

Comments

@killua001
Copy link

When run sql to delete data from the partition table:
delete from ubas_event_info_his_20170327 a where a.data_source not in ('ios','android')

Error raise:
Caused by: org.postgresql.util.PSQLException: ERROR: must be superuser to examine "shared_preload_libraries"

postgresql.conf:
shared_preload_libraries = 'pg_pathman,repmgr_funcs,pg_stat_statements,auto_explain'

@funbringer
Copy link
Collaborator

funbringer commented Mar 27, 2017

Hi @killua001,

Thank you for your bug report. In fact, pg_pathman is supposed to show you this message:

ERROR: extension conflict has been detected
DETAIL: shared_preload_libraries = "pg_pathman,repmgr_funcs,pg_stat_statements,auto_explain"
HINT: pg_pathman should be the last extension listed in shared_preload_libraries GUC
in order to prevent possible conflicts with other extensions

We'll fix this in no time, but you should definitely follow this hint.

@killua001
Copy link
Author

Thank you

funbringer added a commit to funbringer/pg_pathman that referenced this issue Mar 27, 2017
@funbringer
Copy link
Collaborator

Pushed a fix into master branch.

@killua001
Copy link
Author

killua001 commented Apr 6, 2017

Hi, @funbringer ,
After I change the shared_preload_libraries parameter to
shared_preload_libraries = 'repmgr_funcs,pg_stat_statements,auto_explain,pg_pathman'

The error "ERROR: must be superuser to examine "shared_preload_libraries" still there.

Can I download the master branch now, or will you provided a hot fix release?

@funbringer
Copy link
Collaborator

funbringer commented Apr 6, 2017

to @killua001:

Can I download the master branch now, or will you provided a hot fix release?

Could you try a master branch? I'll release a hotfix if it works for you.

@funbringer funbringer reopened this Apr 6, 2017
@killua001
Copy link
Author

I will try the master branch, and run it for one week.
Thank you.

@tarvip
Copy link

tarvip commented Apr 18, 2017

README says that pg_pathman must be first if using together with pg_stat_statements, but HINT says it should be last, which one is correct?

@funbringer
Copy link
Collaborator

to @tarvip:

Thanks, I've fixed readme. Sometimes it's hard to track changes.

pg_pathman should be the last extension.

@funbringer
Copy link
Collaborator

to @killua001:

Is everything ok now?

@killua001
Copy link
Author

@funbringer
There is no error until now. May be the bug has been fixed .

@funbringer
Copy link
Collaborator

@killua001:

Ok, feel free to write us if anything is wrong. You'll be able to post messages in this thread even if the issue is closed.

@killua001
Copy link
Author

@funbringer
Will you release a new version to fix this bug?

@funbringer
Copy link
Collaborator

I think we'll roll out a bugfix release in 1-2 days (1.3.1).

@killua001
Copy link
Author

@funbringer
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants