Skip to content

Conversation

homper
Copy link
Contributor

@homper homper commented Sep 10, 2023

For example, this script

#!/usr/bin/env python3
# coding: utf-8

import testgres

node = testgres.get_new_node()
node.init()
node.start()
node.safe_psql("CREATE TABLE IF NOT EXISTS o_test (val int);")
node.execute("INSERT INTO o_test VALUES (1);")
print(node.execute("TABLE o_test;")[0][0])
node.execute("UPDATE o_test SET val = 2;")
print(node.execute("TABLE o_test;")[0][0])
node.stop()

prints

python t/checkpointer_test.py
Error executing query: attempting to use unexecuted cursor
1
Error executing query: attempting to use unexecuted cursor
2

This is probably not the intended behavior

@demonolock demonolock merged commit 79a8dc5 into postgrespro:master Dec 22, 2023
@demonolock
Copy link
Contributor

@homper Thank you! Will add it to the next release

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

Successfully merging this pull request may close these issues.

2 participants