pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jon Nelson <jnelson+pgsql@jamponi.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: copy vs. C function
Date: Wed, 14 Dec 2011 10:25:30 -0500
Message-ID: <7080.1323876330@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKuK5J3VsY-1_4wzRZiYR_ExWVGhnMHYmkBZBxnvBxkMfqsL5w@mail.gmail.com>
References: <CAKuK5J3hB1g+dUtwu68sDF-bED=Xv_TaBfoOoyNRQbUGu9Zs3Q@mail.gmail.com>
	<CAHyXU0yC8Q3JihEws=naH0p9Mh5MyLLu7yXAjp9gE0sQORN-fA@mail.gmail.com>
	<CAKuK5J0EzKnvAfNk=JKd2Mw3q25fguHKYwTQCkYvxPYA+TDKPw@mail.gmail.com>
	<29057.1323843491@sss.pgh.pa.us>
	<CAKuK5J3VsY-1_4wzRZiYR_ExWVGhnMHYmkBZBxnvBxkMfqsL5w@mail.gmail.com>

Jon Nelson <jnelson+pgsql@jamponi.net> writes:
> Regarding caching, I tried caching it across calls by making the
> TupleDesc static and only initializing it once.
> When I tried that, I got:

> ERROR:  number of columns (6769856) exceeds limit (1664)

> I tried to find some documentation or examples that cache the
> information, but couldn't find any.

You might find reading record_in to be helpful.  What it caches is not
exactly what you need to, I think, but it shows the general principles.
There are lots of other functions that use fn_extra to cache info, too.

			regards, tom lane



view thread (16+ messages)  latest in thread

Message-ID: <7080.1323876330@sss.pgh.pa.us>
Permalink:  ../7080.1323876330@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7080.1323876330@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, jnelson+pgsql@jamponi.net
  Subject: Re: copy vs. C function
  In-Reply-To: <7080.1323876330@sss.pgh.pa.us>

* 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