pgsql: Avoid ecpglib core dump with out-of-order operations.

2022-06-14 Thread Tom Lane
Avoid ecpglib core dump with out-of-order operations. If an application executed operations like EXEC SQL PREPARE without having first established a database connection, it could get a core dump instead of the expected clean failure. This occurred because we did "pthread_getspecific(actual_connec

pgsql: Avoid ecpglib core dump with out-of-order operations.

2022-06-14 Thread Tom Lane
Avoid ecpglib core dump with out-of-order operations. If an application executed operations like EXEC SQL PREPARE without having first established a database connection, it could get a core dump instead of the expected clean failure. This occurred because we did "pthread_getspecific(actual_connec

pgsql: Avoid ecpglib core dump with out-of-order operations.

2022-06-14 Thread Tom Lane
Avoid ecpglib core dump with out-of-order operations. If an application executed operations like EXEC SQL PREPARE without having first established a database connection, it could get a core dump instead of the expected clean failure. This occurred because we did "pthread_getspecific(actual_connec

pgsql: Avoid ecpglib core dump with out-of-order operations.

2022-06-14 Thread Tom Lane
Avoid ecpglib core dump with out-of-order operations. If an application executed operations like EXEC SQL PREPARE without having first established a database connection, it could get a core dump instead of the expected clean failure. This occurred because we did "pthread_getspecific(actual_connec

pgsql: Avoid ecpglib core dump with out-of-order operations.

2022-06-14 Thread Tom Lane
Avoid ecpglib core dump with out-of-order operations. If an application executed operations like EXEC SQL PREPARE without having first established a database connection, it could get a core dump instead of the expected clean failure. This occurred because we did "pthread_getspecific(actual_connec

pgsql: Avoid ecpglib core dump with out-of-order operations.

2022-06-14 Thread Tom Lane
Avoid ecpglib core dump with out-of-order operations. If an application executed operations like EXEC SQL PREPARE without having first established a database connection, it could get a core dump instead of the expected clean failure. This occurred because we did "pthread_getspecific(actual_connec