Hi everybody, I am running postgres as a message store and want to get a daily report on the messages from the last 24 hours. I can select rows with a filter for the created_at column, but the operater “greater than” expects a numeric value and the values are not numeric, but timestamps. transforming them into universal unix code (which is only numeric) does not work here as postgres does not allow javascript in a select statement (at least to my knowledge and my testing). Filtering in the next step is not the preferred solution as this would need all messages loaded in the memory first and this is not efficient.
Information on your n8n setup
- n8n version: latest
- Database (default: SQLite): SQLite (yes, postgres only for messages)
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- Operating system: ubuntu