agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: David Alan Nelson <D.A.Nelson@newcastle.ac.uk>
To: Postgres <postgres@postgres.Berkeley.EDU>
Cc: Neville Smith <n.s.smith@newcastle.ac.uk>
Subject: Copy Problem
Date: Mon, 15 Aug 1994 13:15:09 +0100 (BST)
Message-ID: <AA07144.9408151215@swinhoe.ncl.ac.uk> (raw)
This is a problem one of out Postgres users is having. He's
using Postgres 4.1. Any suggestions?
Cheers
Dave
-----------------------------------------
copy a to "/tmp/nev"
-----------------------------------------
from the command line works, "a" has one field "n" of type int4 and the
table contains only one record.
=========================================
define function squeeky
(language = "postquel", returntype = int4)
as "
copy a to \\"/tmp/nev\\"
retrieve (x = 1) " \g
(note no warnings/syntax errors)
=========================================
called using:
retrieve (x = squeeky()) \g
=========================================
takes the system down, that is the bugger locks and you CTRL-C out of
it. Waited for around 5 mins, but the query didn't terminate.
There are no rewrite rules, no instance rules, no other classes, and no
other functions. (or anything else for that matter)
Note that the directory used is readable and writable by both postgres and
myself.
--
Mail ID : D.A.Nelson@newcastle.ac.uk
Computing Science, University of Newcastle upon Tyne, UK. (091) 222 8789
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
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: postgres@postgres.berkeley.edu
Cc: D.A.Nelson@newcastle.ac.uk, n.s.smith@newcastle.ac.uk
Subject: Re: Copy Problem
In-Reply-To: <AA07144.9408151215@swinhoe.ncl.ac.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox