3 | | FWIW I was surprised to learn that `psycopg>=3` also [https://www.psycopg.org/psycopg3/docs/advanced/prepare.html#prepared-statements prepares statement automatically on the fifth execution] which might result in unexpected behaviour. I'm not sure if this is the case when client-side binding is used though, I assume not as that requires the usage of server-side bindings? |
| 3 | FWIW I was surprised to learn that `psycopg>=3` also [https://www.psycopg.org/psycopg3/docs/advanced/prepare.html#prepared-statements prepares statement automatically on the fifth execution] which might result in unexpected behaviour. |
| 4 | |
| 5 | ~~I'm not sure if this is the case when client-side binding is used though, I assume not as that requires the usage of server-side bindings?~~ confirmed from [https://www.psycopg.org/psycopg3/docs/advanced/cursors.html#client-side-binding-cursors the docs] |
| 6 | > Client-side cursors don’t support binary parameters and return values and **don’t support prepared statements**. |