By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version |
|---|
| PostgreSQL 14.10 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20), 64-bit |
SELECT 1
CREATE TABLE
INSERT 0 1
INSERT 0 299999
ANALYZE
| t_field | regexp_replace |
|---|---|
| bar$foo$john$doe$xxx | bar$foo$john$doe-xxx |
| c92$b1eb$bd9e6$fa7$d83 | c92$b1eb$bd9e6$fa7-d83 |
SELECT 2
| QUERY PLAN |
|---|
| Seq Scan on test (cost=0.00..5968.00 rows=300000 width=32) (actual rows=300000 loops=1) |
| Planning Time: 0.070 ms |
| Execution Time: 534.461 ms |
EXPLAIN