Re: [GENERAL] Ambiguous order by?

2013-05-22 Thread Cody Cutrer
Okay, so why does wrapping the order by in a function fix it? (or not doing a join, or doing an implicit join) Cody Cutrer On Wed, May 22, 2013 at 11:36 AM, Tom Lane wrote: > Cody Cutrer writes: > > create table test1 (id integer, sortable_name varchar); > > create table te

[GENERAL] Ambiguous order by?

2013-05-22 Thread Cody Cutrer
name FROM users ORDER BY sortable_name. The application code always appends sortable_name to the select list because, depending on available features, sortable_name might be a function call and in a GROUP BY. Thanks for any insight, Cody Cutrer

Re: [GENERAL] Initing a new replica

2012-06-26 Thread Cody Cutrer
the bulk of the I/O to the non-participating replica, while still doing the "critical" parts of the backup against the master. Cody Cutrer On Tue, Jun 26, 2012 at 10:04 PM, Cody Cutrer wrote: > I've got a few questions about initing a new replica. We have a > modestly la

[GENERAL] Initing a new replica

2012-06-26 Thread Cody Cutrer
ad on the new master. Thanks for any help, Cody Cutrer -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Index on System Table

2012-03-21 Thread Cody Cutrer
That's awesome, thanks! Yeah, I doubt I'll do that to our production database, but maybe I'll try it on a copy sometime down the line. Adjusting the cost for pg_table_is_visible is working well enough so far. Cody Cutrer On Wed, Mar 21, 2012 at 12:17 PM, Tom Lane wrote: > C

Re: [GENERAL] Index on System Table

2012-03-21 Thread Cody Cutrer
e_is_visible (rel oid) cost 50;" the query planner is now avoiding that function, and doing other filtering first. The queries are all a few seconds now, but not multiple minutes. Cody Cutrer On Tue, Mar 20, 2012 at 6:06 PM, Tom Lane wrote: > Cody Cutrer writes: >> I've got a

[GENERAL] Indexes on System Table

2012-03-20 Thread Cody Cutrer
o test by copying it to a temporary table and adding the index there). My question is if there is a way to create the index on the system table somehow for just my database, and if not how would the developer community react to the suggestion of adding an index to a system table in the default pos

[GENERAL] Index on System Table

2012-03-20 Thread Cody Cutrer
o test by copying it to a temporary table and adding the index there). My question is if there is a way to create the index on the system table somehow for just my database, and if not how would the developer community react to the suggestion of adding an index to a system table in the default pos