> (add-to-list 'auto-mode-alist> '("/psql.edit.[0-9]+\\'" . sql-mode))
Thanks, Peter!That's exactly what I was looking for.