pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: adrian@wsi.edu.pl
To: pgsql-sql@postgresql.org
Subject: hints or suggestion for optimizer
Date: Thu, 18 Jul 2002 12:34:27 +0200
Message-ID: <ah653f$130v$1@news.hub.org> (raw)

How can I optimize Postrges SQL when I would like have ordering kolumns
without clause ORDER BY - in Oracle you can use hints to suggestion
optimizer.

for example.

SELECT /*+   INDEX_ASC TAB(TAB_PK)  +/   * FROM TAB <WHERE CLAUSE> -  most
efficent

SELECT * FROM TAB ORDER BY TAB_PK <WHERE CLAUSE>

where TAB_PK - is unique index on KOD column

WHERE CLAUSE - without OR ,UNION,  accept LIKE, AND etc

Does similar mechanizm has Postgres ?








Message-ID: <ah653f$130v$1@news.hub.org>
Permalink:  ../ah653f$130v$1@news.hub.org/
Also on:    postgresql.org/message-id/ah653f$130v$1@news.hub.org

 · 

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: adrian@wsi.edu.pl
  Subject: Re: hints or suggestion for optimizer
  In-Reply-To: <ah653f$130v$1@news.hub.org>

* 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