“server closed the connection unexpectedly”

Started by Felipe Gasperalmost 12 years ago4 messagesbugs
Jump to latest
#1Felipe Gasper
felipe@felipegasper.com

The query:

SELECT schemaname, tablename
FROM pg_tables
WHERE tableowner IN (E'njvue5kiy1c') OR schemaname='public';

--------
The error:

DBD::Pg::db selectall_arrayref failed: server closed the connection
unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

--------

It happens every time. The �njvue5kiy1c� is a random generated name.

Does anyone know what may be causing this?

-Felipe Gasper
Houston, TX

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#2Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Felipe Gasper (#1)
Re: “server closed the connection unexpectedly”

On 06/18/2014 09:30 PM, Felipe Gasper wrote:

The query:

SELECT schemaname, tablename
FROM pg_tables
WHERE tableowner IN (E'njvue5kiy1c') OR schemaname='public';

--------
The error:

DBD::Pg::db selectall_arrayref failed: server closed the connection
unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

--------

It happens every time. The “njvue5kiy1c” is a random generated name.

Is there any more information in the server log?

- Heikki

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#3Felipe Gasper
felipe@felipegasper.com
In reply to: Heikki Linnakangas (#2)
Re: “server closed the connection unexpectedly”

On 6/18/14 1:45 PM, Heikki Linnakangas wrote:

On 06/18/2014 09:30 PM, Felipe Gasper wrote:

The query:

SELECT schemaname, tablename
FROM pg_tables
WHERE tableowner IN (E'njvue5kiy1c') OR schemaname='public';

--------
The error:

DBD::Pg::db selectall_arrayref failed: server closed the connection
unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

--------

It happens every time. The “njvue5kiy1c” is a random generated name.

Is there any more information in the server log?

setting log_min_messages to DEBUG5 shows this as the last query and after:

==============
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: LOG: 00000:
statement: GRANT ALL PRIVILEGES on DATABASE "sameownerdb" TO "sameownerdb";
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: LOCATION:
exec_simple_query, postgres.c:842
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: DEBUG: 00000:
ProcessUtility
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: LOCATION:
PortalRunUtility, pquery.c:1163
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: DEBUG: 00000:
CommitTransactionCommand
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: LOCATION:
finish_xact_command, postgres.c:2369
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: DEBUG: 00000:
CommitTransaction
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: LOCATION:
ShowTransactionState, xact.c:4116
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: DEBUG: 00000: name:
unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid:
694/1/1, nestlvl: 1, children:
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: LOCATION:
ShowTransactionStateRec, xact.c:4154
==============

(Curiously, setting any DEBUG* log_min_messages value also makes the log
messages spit to STDERR as well as my log file.)

-F

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#4Felipe Gasper
felipe@felipegasper.com
In reply to: Felipe Gasper (#3)
Re: “server closed the connection unexpectedly”

My bad - bug in my own logic.

Sorry for the spam!

-FG

On 6/18/14 1:51 PM, Felipe Gasper wrote:

On 6/18/14 1:45 PM, Heikki Linnakangas wrote:

On 06/18/2014 09:30 PM, Felipe Gasper wrote:

The query:

SELECT schemaname, tablename
FROM pg_tables
WHERE tableowner IN (E'njvue5kiy1c') OR schemaname='public';

--------
The error:

DBD::Pg::db selectall_arrayref failed: server closed the connection
unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

--------

It happens every time. The “njvue5kiy1c” is a random generated name.

Is there any more information in the server log?

setting log_min_messages to DEBUG5 shows this as the last query and after:

==============
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: LOG: 00000:
statement: GRANT ALL PRIVILEGES on DATABASE "sameownerdb" TO "sameownerdb";
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: LOCATION:
exec_simple_query, postgres.c:842
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: DEBUG: 00000:
ProcessUtility
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: LOCATION:
PortalRunUtility, pquery.c:1163
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: DEBUG: 00000:
CommitTransactionCommand
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: LOCATION:
finish_xact_command, postgres.c:2369
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: DEBUG: 00000:
CommitTransaction
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: LOCATION:
ShowTransactionState, xact.c:4116
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: DEBUG: 00000: name:
unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid:
694/1/1, nestlvl: 1, children:
“postgres” in “postgres” @ 2014-06-18 13:47:15 CDT: LOCATION:
ShowTransactionStateRec, xact.c:4154
==============

(Curiously, setting any DEBUG* log_min_messages value also makes the log
messages spit to STDERR as well as my log file.)

-F

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs