4 ms·
It's not exactly string-based as it accepts bigint key, but I guess it's possible to hash a string when you pass it to the function.
by murkt 3y ago
It's not exactly string-based as it accepts bigint key, but I guess it's possible to hash a string when you pass it to the function.
- c0brac0bra 3y agoThat's what exactly what I did a fairly basic distributed cron and it worked fine.
- murkt 3y agoHave you passed a string into Postgres and then hashed it into bigint with another function? If yes, what function did you use? I assume that if you do it this way, then you see a string key in logs, views of current/locked queries, etc. Which should immensely help when debugging any kind of problems.