Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> FWIW I came up with a preliminary patch for a new psql command \dus that
> shows settings. It takes a pattern that's used to constrain on roles.
> Thus there is no way to view settings for a database. If there's a need
> for that we could use another command, say \dls.
Why not two pattern arguments?
\drds [ role-pattern [ db-pattern ]]
Omitted patterns are presumed to be *
regards, tom lane