Adjust wildcards for postgreql