[bug] Regression: Fixing tags on PostgreSQL. Fixes #4842