Skip to content

Commit 2ea03d2

Browse files
author
James William Pye
committed
Use the new chunks() interface.
1 parent 981fb4f commit 2ea03d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/test/perf_copy_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def incsize(data):
5757
Q = prepare("COPY _copy TO STDOUT")
5858
start = time.time()
5959
c = 0
60-
for rows in Q().chunks:
60+
for rows in Q.chunks():
6161
c += len(rows)
6262
duration = time.time() - start
6363
sys.stderr.write(

0 commit comments

Comments
 (0)