pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robins Tharakan <tharakan@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Bypassing useless ORDER BY in a VIEW
Date: Thu, 28 Feb 2008 20:01:19 +0530
Message-ID: <36af4bed0802280631ja29c636w2256fb329e14b95e@mail.gmail.com> (raw)

Hi,

While designing a complex database structure I wanted to ask a basic
question about views.

If I give an ORDER BY clause in a VIEW and then use it in another query
where the VIEW's ORDER BY is immaterial, would the planner be able to
discard this ORDER BY clause ?

Any pointers / feedbacks would be really helpful.

Regards,
*Robins Tharakan*

view thread (5+ messages)  latest in thread

Message-ID: <36af4bed0802280631ja29c636w2256fb329e14b95e@mail.gmail.com>
Permalink:  ../36af4bed0802280631ja29c636w2256fb329e14b95e@mail.gmail.com/
Also on:    postgresql.org/message-id/36af4bed0802280631ja29c636w2256fb329e14b95e@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-performance@postgresql.org
  Cc: tharakan@gmail.com
  Subject: Re: Bypassing useless ORDER BY in a VIEW
  In-Reply-To: <36af4bed0802280631ja29c636w2256fb329e14b95e@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