sql 2026-07-24

Is there some "nice" way to make the postgres JDBC driver "preload" all the table information in a schema at once, to avoid the metadata fetch query when a table is referenced first? https://github.com/seancorfield/next-jdbc/issues/275 I imagine I can achieve this by first querying information_schema for all the tables and then building a select 1 = 1 from ... with all the tables listed, but I wondered if there's something less hacky-smelling

Personally I think it's easier to use namespaced aliases in sql like:

select
  id as "user/id",
  name as "user/name",
  profile_id as "user/profile-id"
from
  users
and unqualified_map builder.

Under the hood, jdbc.next will just turn "user/id" into a keyword without fetching extra information. There is no need to replace _ with - as well