await db .select() .from(sql`pg_prepared_statements`) .execute();
await db .select() .from(sql`pg_prepared_statements`) .execute();
to confirm that the prepared statement was created, but it always returns 0 rows, even after running the first query a bunch of times. I've also confirmed that the issue remains even after setting
prepare: true
prepare: true
in the Postgres.js config. Is there an issue here, or is my understanding of checking for prepared statements wrong?