pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark R. Dingee <mark.dingee@cox.net>
To: Jim C. Nasby <jim@nasby.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Temp tables and functions
Date: Wed, 11 Oct 2006 07:02:47 -0400
Message-ID: <1160564567.12626.54.camel@localhost.localdomain> (raw)
In-Reply-To: <20061011021151.GI72517@nasby.net>
References: <398587.1160508096610.JavaMail.root@eastrmwml06.mgt.cox.net>
	<20061011021151.GI72517@nasby.net>

Thanks, Jim.  I'll give it a try.

On Tue, 2006-10-10 at 21:11 -0500, Jim C. Nasby wrote:
> On Tue, Oct 10, 2006 at 03:21:36PM -0400, mark.dingee@cox.net wrote:
> > Everyone,
> > 
> > I've written a function (language = sql) which uses a temporary table to simplify the process; however, when I go to load the function I get:
> > 
> > /var/lib/pgsql$cat thm.sql | psql test
> > ERROR:  relation "lost_bus" does not exist
> > 
> > where "lost_bus" is the name of my temp table.  The function is just for a report that is run monthly, so I can create a permanent table if necessary, but I'd rather not. 
> 
> Create the temp table in your script that creates the function. You
> don't need to populate it or anything, you just need it to exist
> (prefferably with the correct definition).




view thread (3+ messages)

Message-ID: <1160564567.12626.54.camel@localhost.localdomain>
Permalink:  ../1160564567.12626.54.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1160564567.12626.54.camel@localhost.localdomain

 · 

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: mark.dingee@cox.net, jim@nasby.net
  Subject: Re: Temp tables and functions
  In-Reply-To: <1160564567.12626.54.camel@localhost.localdomain>

* 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