| From: | "Jeff Barrett" <jbarrett(at)familynetwork(dot)com> |
|---|---|
| To: | pgsql-sql(at)postgresql(dot)org |
| Subject: | create type of table |
| Date: | 2001-07-06 15:41:10 |
| Message-ID: | 9i4mgl$14qj$1@news.tht.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2001-07-06 16:13:37 | Re: Is function atomic? |
| Previous Message | Roberto Mello | 2001-07-06 15:38:00 | PL/TclU |