|
|
|
|
|
by zombodb
2172 days ago
|
|
Sure! Top is Postgres, bottom is pgx, after running each 5 times... test=# SELECT count(*) FROM (SELECT generate_series(1, 10000000)) s;
count
----------
10000000
(1 row)
Time: 399.630 ms
test=# SELECT count(*) FROM (SELECT srf.generate_series(1, 10000000)) s;
count
----------
10000000
(1 row)
Time: 478.194 ms
Thanks for the reply. I'm not surprised there's room for optimization in pgx, especially in the Iterator-->SRF path.edit: PS, thanks for the idea of putting what I assume is the backend pid in psql's prompt. I need to go figure out how to do that right now! edit edit: hmm, I guess that's not the PID. |
|
> edit: PS, thanks for the idea of putting what I assume is the backend pid in psql's prompt. I need to go figure out how to do that right now!
Here's my ~/.psqlrc: