Emmanuel Cecchet <manu(at)asterdata(dot)com> writes:
> It looks like the behavior of regclass is not consistent when table
> names are quoted. The name is returned without the quotes if the name is
> lower case with eventual trailing numbers, otherwise it is returned with
> quotes.
It's intentional that it quotes only when needed.
regards, tom lane