pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Gary Chambers <gwchamb@gmail.com>
Cc: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: 8.4.1 distinct query WITHOUT order by
Date: Mon, 21 Dec 2009 22:23:11 -0700
Message-ID: <dcc563d10912212123l3847dbdbnb4bbaff5394c83cf@mail.gmail.com> (raw)
In-Reply-To: <dcc563d10912212118w2e78a715k49dc0a8fcecd63dd@mail.gmail.com>
References: <302670f20912211415n4fc73b04x19eebfb9ff0acd60@mail.gmail.com>
	<hgotd1$mei$1@ger.gmane.org>
	<dcc563d10912211453ybe3b4d6y87303e795e3115c1@mail.gmail.com>
	<302670f20912211945n1b6684e9xb304d4508766f117@mail.gmail.com>
	<dcc563d10912212118w2e78a715k49dc0a8fcecd63dd@mail.gmail.com>

On Mon, Dec 21, 2009 at 10:18 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> On Mon, Dec 21, 2009 at 8:45 PM, Gary Chambers <gwchamb@gmail.com> wrote:
>>> Yeah, if you're code base is that fragile, bandaging it up by jumping
>>> through hoops in pgsql is just putting off the inevitable when it (the
>>> code base) has to get recompiled someday anyway.
>>
>> I appreciate (and agree with) the concern about the fragility of the
>> codebase.  The maintainer knows that anything except adding ORDER BY
>> is a kludge.
>>
>> Now, the aforementioned notwithstanding...
>
> Replacing the table with a view should work.  Just be sure to make
> insert rules if you need it to be insertable by other parts of the app
> I guess.

Actually, since the order by in the view will be applied before the
hash_agg and stuff, I don't think it will work.



view thread (8+ messages)  latest in thread

Message-ID: <dcc563d10912212123l3847dbdbnb4bbaff5394c83cf@mail.gmail.com>
Permalink:  ../dcc563d10912212123l3847dbdbnb4bbaff5394c83cf@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10912212123l3847dbdbnb4bbaff5394c83cf@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: scott.marlowe@gmail.com, gwchamb@gmail.com, spam_eater@gmx.net
  Subject: Re: 8.4.1 distinct query WITHOUT order by
  In-Reply-To: <dcc563d10912212123l3847dbdbnb4bbaff5394c83cf@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox