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

Warning: pg_exec(): Query failed: ERROR: column "current_query" does not exist LINE 1: ...ect count(*) as check from pg_stat_activity where current_qu... ^ in instant_livedata.php on line 126 #65

Open
encorehu opened this issue Apr 7, 2014 · 0 comments

Comments

@encorehu
Copy link

encorehu commented Apr 7, 2014

Warning: pg_exec(): Query failed: ERROR: column "current_query" does not exist LINE 1: ...ect count(*) as check from pg_stat_activity where current_qu... ^ in instant_livedata.php on line 126

this is because current_query changed from postgresql 9.2, now i use postgresql 9.3, this appeared.

https://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.2

pg_stat_activity and pg_stat_replication's definitions have changed

The view pg_stat_activity has changed. It's not backward compatible, but let's see what this new definition brings us:

current_query disappears and is replaced by two columns:
state: is the session running a query, waiting
query: what is the last run (or still running if stat is "active") query
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant