pgsql: Ignore not-yet-defined Portals in pg_cursors view.

2024-10-06 Thread Tom Lane
Ignore not-yet-defined Portals in pg_cursors view. pg_cursor() supposed that any Portal it finds in the hash table must have sourceText set up, but there's an edge case where that is not so. A newly-created Portal has sourceText = NULL, and that doesn't change until PortalDefineQuery is called. I

pgsql: Ignore not-yet-defined Portals in pg_cursors view.

2024-10-06 Thread Tom Lane
Ignore not-yet-defined Portals in pg_cursors view. pg_cursor() supposed that any Portal it finds in the hash table must have sourceText set up, but there's an edge case where that is not so. A newly-created Portal has sourceText = NULL, and that doesn't change until PortalDefineQuery is called. I

pgsql: Ignore not-yet-defined Portals in pg_cursors view.

2024-10-06 Thread Tom Lane
Ignore not-yet-defined Portals in pg_cursors view. pg_cursor() supposed that any Portal it finds in the hash table must have sourceText set up, but there's an edge case where that is not so. A newly-created Portal has sourceText = NULL, and that doesn't change until PortalDefineQuery is called. I

pgsql: Ignore not-yet-defined Portals in pg_cursors view.

2024-10-06 Thread Tom Lane
Ignore not-yet-defined Portals in pg_cursors view. pg_cursor() supposed that any Portal it finds in the hash table must have sourceText set up, but there's an edge case where that is not so. A newly-created Portal has sourceText = NULL, and that doesn't change until PortalDefineQuery is called. I

pgsql: Ignore not-yet-defined Portals in pg_cursors view.

2024-10-06 Thread Tom Lane
Ignore not-yet-defined Portals in pg_cursors view. pg_cursor() supposed that any Portal it finds in the hash table must have sourceText set up, but there's an edge case where that is not so. A newly-created Portal has sourceText = NULL, and that doesn't change until PortalDefineQuery is called. I

pgsql: Ignore not-yet-defined Portals in pg_cursors view.

2024-10-06 Thread Tom Lane
Ignore not-yet-defined Portals in pg_cursors view. pg_cursor() supposed that any Portal it finds in the hash table must have sourceText set up, but there's an edge case where that is not so. A newly-created Portal has sourceText = NULL, and that doesn't change until PortalDefineQuery is called. I

pgsql: Ignore not-yet-defined Portals in pg_cursors view.

2024-10-06 Thread Tom Lane
Ignore not-yet-defined Portals in pg_cursors view. pg_cursor() supposed that any Portal it finds in the hash table must have sourceText set up, but there's an edge case where that is not so. A newly-created Portal has sourceText = NULL, and that doesn't change until PortalDefineQuery is called. I