Re: [HACKERS] regclass error reports improperly downcased

2013-11-11 Thread Tom Lane
Jim Nasby writes: > Is anyone opposed to some kind of hint? Would depend on the text of the hint. I'm a bit dubious that we can come up with something that's not wildly inappropriate in other scenarios. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-h

Re: [HACKERS] regclass error reports improperly downcased

2013-11-11 Thread Jim Nasby
On 11/8/13 2:21 PM, Tom Lane wrote: Jim Nasby writes: Ahh, duh. Hrm... I ran across this because someone here got confused by this: SELECT pg_total_relation_size( schema_name || '.' || relname ) FROM pg_stat_all_tables ERROR: relation "moo" does not exist Personally I'd do that like

Re: [HACKERS] regclass error reports improperly downcased

2013-11-08 Thread Tom Lane
Jim Nasby writes: > Ahh, duh. Hrm... I ran across this because someone here got confused by this: > SELECT pg_total_relation_size( schema_name || '.' || relname ) FROM > pg_stat_all_tables > ERROR: relation "moo" does not exist Personally I'd do that like select pg_total_relation_si

Re: [HACKERS] regclass error reports improperly downcased

2013-11-08 Thread Jim Nasby
On 11/7/13 6:41 PM, Tom Lane wrote: Jim Nasby writes: decibel@decina.cashnetusa=# SELECT 'Moo'::regclass; ERROR: relation "moo" does not exist at character 8 That's doing what it's supposed to. Compare regression=# select 'Moo'::regclass; ERROR: relation "moo" does not exist LINE 1: selec

Re: [HACKERS] regclass error reports improperly downcased

2013-11-07 Thread Tom Lane
Jim Nasby writes: > decibel@decina.cashnetusa=# SELECT 'Moo'::regclass; > ERROR: relation "moo" does not exist at character 8 That's doing what it's supposed to. Compare regression=# select 'Moo'::regclass; ERROR: relation "moo" does not exist LINE 1: select 'Moo'::regclass; ^

Re: [HACKERS] regclass error reports improperly downcased

2013-11-07 Thread Greg Stark
On Fri, Nov 8, 2013 at 12:29 AM, Jim Nasby wrote: > decibel@decina.cashnetusa=# SELECT 'Moo'::regclass; > ERROR: relation "moo" does not exist at character 8 > > Obviously in this example it doesn't matter, but this can definitely > confuse users. > I would actually say *not* downcasing would b

[HACKERS] regclass error reports improperly downcased

2013-11-07 Thread Jim Nasby
psql (9.3.1) Type "help" for help. decibel@decina.cashnetusa=# SELECT 'Moo'::regclass; ERROR: relation "moo" does not exist at character 8 Obviously in this example it doesn't matter, but this can definitely confuse users. Same in 9.1 and HEAD. -- Jim Nasby, Lead Data Architect (512) 569-94