PostgreSQL: Search dates on large tables with pg_IdFromDate() | Hacker News Reader