/postroll
challahscript.com
challahscript.com
I switched over from SQLite to Postgres to power my site some months ago, and have found myself having to learn some new usage when interacting with the database. These are likely very old hat for anybody familiar with Postgres, but I find myself having to remind myself what they are.
#{some tag} or tag:{some tag} to filter by tag; using this more than once will find results that match all tags.year:{year} to filter by year. If you use this multiple times, the last one wins.begin:{year-month-day} to restrict to results beginning on that day. Last one wins.end:{year-month-day} to restrict to results ending on that day. Last one wins.
Great article going over a bunch of things the author learned about Postgres over several years of working with it. The information on how to do JSONb queries alone is worth the read.