pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Barrett <jbarrett@familynetwork.com>
To: pgsql-sql@postgresql.org
Subject: create type of table
Date: Fri, 6 Jul 2001 11:41:10 -0400
Message-ID: <9i4mgl$14qj$1@news.tht.net> (raw)

I have a problem where I need to restrict queries by more than a million ids
that are the result of another program. Typically I would in the application
layer write those ids into an IN( ) clause, but that will not work for more
than 10,000 ids. So I need to load these ids into the db into some structure
that I can call/join in the other queries. I have a I amd considering a
temporary solution where a table is loaded with the nessesary ids for
restricting the queries. I would really like something more efficent. In
oracle I know I can create a variable of type table and fill it with these
ids and then write my queries to use this table. How can I do this in
postgresql, I did not see any support for a type table.

Anyone know of any good tutorials or how-tos for doing this type of stuff in
postgresql?

Thanks - Jeff





Message-ID: <9i4mgl$14qj$1@news.tht.net>
Permalink:  ../9i4mgl$14qj$1@news.tht.net/
Also on:    postgresql.org/message-id/9i4mgl$14qj$1@news.tht.net

 · 

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: jbarrett@familynetwork.com
  Subject: Re: create type of table
  In-Reply-To: <9i4mgl$14qj$1@news.tht.net>

* 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