Re: [GENERAL] ERROR: column "currec" does not exist while calling function with 'record' (or %rowtype% argument

2004-03-24 Thread Tom Lane
=?iso-8859-1?Q?g=FCnter_strubinsky?= <[EMAIL PROTECTED]> writes: > Sorry, wrong copy! Okay, looking more closely, you've got two problems here: > CREATE OR REPLACE FUNCTION public.norm(int8, record) > RETURNS int8 AS > ... > LANGUAGE 'plpgsql' VOLATILE; plpgsql functions don't support inputs

[GENERAL] Adding flexibilty to queries

2004-03-24 Thread Alan Carbutt
Hi all, I have a question regarding psql. As I am more familiar with oracle I can write the following select and make it rather flexible: select name from name_table where person_id = &id; The &id portion is what I am looking for in PostgreSQL. Basically when running this query, the person runni

Re: [GENERAL] pg_dump "what if?"

2004-03-24 Thread Anony Mous
That sounds like a great solution...thank you! My win API knowledge is weak, but I'll give it a try. Thanks again. -Pete -Original Message- From: Shelby Cain [mailto:[EMAIL PROTECTED] Sent: March 24, 2004 4:30 PM To: Anony Mous; 'Dustin Sallings' Cc: [EMAIL PROTECTED] Subject: Re: [GEN

Re: [GENERAL] pg_dump "what if?"

2004-03-24 Thread Shelby Cain
You could spawn pg_dump via CreateProcess and call WaitForSingleObject() on the handle that CreateProcess returns in a worker thread. When the Wait() function returns, you can then call GetExitCodeProcess() on the same handle to get the process exit code. Just a thought. Regards, Shelby Cain

Re: [GENERAL] PHP or JSP? That is the question.

2004-03-24 Thread Guy Fraser
This is an example of what I mean : 1) Fill out form to get data. 2) Server responds with java and set of records. 3) Java applet displays one of the records and with out further intervention from the server, tha java applet can be used to scroll back and forth through the other records. Becaus

Re: [GENERAL] Transaction Isolation Level

2004-03-24 Thread Kris Jurka
On Thu, 25 Mar 2004, Grace C. Unson wrote: > Hello. > > How is it possible that ResultSetObjInstance in this statement > > ResultSetObjInstance = PreparedObjInstance.executeQuery() > > contains this column and value respectively: > > TRANSACTION ISOLATION LEVEL , READ_COMMITTED ? > > --- >

Re: [GENERAL] ole db

2004-03-24 Thread Grant Allen
> -Original Message- > From: Shachar Shemesh [mailto:[EMAIL PROTECTED] > Sent: Thursday, 25 March 2004 05:39 > To: Grant Allen > Cc: [EMAIL PROTECTED]; PostgreSQL OLE DB development; > [EMAIL PROTECTED] > Subject: Re: [GENERAL] ole db > > > Grant Allen wrote: > > >It's a dead project ...

Re: [GENERAL] ERROR: column "currec" does not exist while calling function with 'record' (or %rowtype% argument

2004-03-24 Thread günter strubinsky
Sorry, wrong copy! -- Function: public.norm(int8, record) -- DROP FUNCTION public.norm(int8, record); CREATE OR REPLACE FUNCTION public.norm(int8, record) RETURNS int8 AS ' declare prim alias for $1; catrec alias for

Re: [GENERAL] ERROR: column "currec" does not exist while calling function with 'record' (or %rowtype% argument

2004-03-24 Thread Tom Lane
=?iso-8859-1?Q?g=FCnter_strubinsky?= <[EMAIL PROTECTED]> writes: > currrec record; ^^^ > select * into currec from denorm where theKey=catrec.cat1; ^^ > Where am I going wrong; Count the "r"s ... regards, tom lane --

[GENERAL] PG's table inheritance and object table in Oracle

2004-03-24 Thread David Garamond
Is there anyone using object table in Oracle? How does it differ from table inheritance in PG (aside from the declaration syntax). I actually just found out about table inheritance today, and absolutely love it! However, it's a shame if this feature is totally unportable. Are there any other po

Re: [GENERAL] subversion vs cvs (Was: Re: [HACKERS] linked list rewrite)

2004-03-24 Thread David Garamond
Andrew Dunstan wrote: (btw, if you want to work offline, which i saw referred to a couple of times, wouldn't cvsup do most of the job?). From what I understand, a "distributed" source control means each developer gets his own _repository_, not just a working copy. This means you can commit to yo

[GENERAL] ERROR: column "currec" does not exist while calling function with 'record' (or %rowtype% argument

2004-03-24 Thread günter strubinsky
The example does not make a lot of sense; it has been created for demonstration purposes only: - -- One Table: -- Table: public.denorm -- DROP TABLE public.denorm; CREATE TABLE public.denorm ( thekey int8 NOT NULL DEFAULT nextval('publ

Re: [GENERAL] pg_dump "what if?"

2004-03-24 Thread Anony Mous
Thanks, but I’m calling a win32 compiled version of pg_dump, which runs asynchronously to the rest of my code (sorry I was vague in my first message).  As such, I don’t see how I can use the return value.  My only other thought was to check for the existence of the file, which would be usel

Re: [GENERAL] 7.4.2 on Solaris 9 - Error

2004-03-24 Thread Kris Jurka
On Fri, 19 Mar 2004, Carmen Gloria Sepulveda Dedes wrote: > Hi. > > I want to install postgres 7.4.2 on solaris 9. > > I configure with: ./configure --enable-thread-safety > and it works fine (no error). > > When I do "gmake", I get this error: > > thread.c: In function `pqGetpwuid': > thre

Re: [GENERAL] pg_dump "what if?"

2004-03-24 Thread Dustin Sallings
On Mar 24, 2004, at 11:42, Anony Mous wrote: I’m running pg_dump 7.3.4.  I have a nightly process that dumps a database via pg_dump, and then checks for the existence of the dumped file afterwards to confirm that the dump actually occurred.  Just wondering, however, if a corrupt disk prevented pg

[GENERAL] pg_dump "what if?"

2004-03-24 Thread Anony Mous
Hi,   I’m running pg_dump 7.3.4.  I have a nightly process that dumps a database via pg_dump, and then checks for the existence of the dumped file afterwards to confirm that the dump actually occurred.  Just wondering, however, if a corrupt disk prevented pg_dump from executing fully, wou

Re: [GENERAL] case statement as inline function?

2004-03-24 Thread Mike Nolan
> > Is there any way to treat it like an inline function so that I could write > > something like the following (highly simplified): > > I think 7.4 will inline simple SQL functions. Your CASE looks like a good > candidate. > > >select case when A=1 then 1 when B=1 then 2 else null end > >

Re: [GENERAL] postmaster won't start under cygwin after password change

2004-03-24 Thread Bill Harris
Bill Harris <[EMAIL PROTECTED]> writes: > I asked on cygwin but no answer yet; maybe someone here knows. > > I've been running PostgreSQL 7.4.1 successfully for a few weeks under an > updated cygwin, but it stopped working over the weekend. That happened > to be the time XP Pro decided my postgr

Re: [GENERAL] ole db

2004-03-24 Thread Shachar Shemesh
Grant Allen wrote: It's a dead project ... Used to be dead. Not any more. I couldn't find any useable output (that's more an indictment of my coding skills than anything else). Then you haven't tried over the past month or two. The version released there already has some results support. The

Re: [GENERAL] postmaster won't start under cygwin after password change

2004-03-24 Thread Shelby Cain
You have to update the credentials stored in the service configuration. Start->Run->services.msc->[service name]->Logon Regards, Shelby Cain --- Bill Harris <[EMAIL PROTECTED]> wrote: > I asked on cygwin but no answer yet; maybe someone > here knows. > > I've been running PostgreSQL 7.4.1 suc

Re: [GENERAL] case statement as inline function?

2004-03-24 Thread Richard Huxton
On Wednesday 24 March 2004 16:33, Mike Nolan wrote: > > Is there any way to treat it like an inline function so that I could write > something like the following (highly simplified): I think 7.4 will inline simple SQL functions. Your CASE looks like a good candidate. >select case when A=1 th

[GENERAL] Transaction Isolation Level

2004-03-24 Thread Grace C. Unson
Hello. How is it possible that ResultSetObjInstance in this statement ResultSetObjInstance = PreparedObjInstance.executeQuery() contains this column and value respectively: TRANSACTION ISOLATION LEVEL , READ_COMMITTED ? --- Note: During the query operation, lots of write operations are going

Re: [GENERAL] partial VACUUM FULL

2004-03-24 Thread Bill Moran
scott.marlowe wrote: On Tue, 23 Mar 2004, Tom Lane wrote: Bill Moran <[EMAIL PROTECTED]> writes: Was this true for some previous version? I could have swore I read somewhere that vacuum_mem had to be set high enough or vacuum wouldn't be able to clean everything up (aside from anything locked in

[GENERAL] Stored Function EXCEPTION detection by Perl using DBI

2004-03-24 Thread Rich Hall
Thisa is probably the wrong forum for this question. But perhaps I could be pointed to the correct forum. I am in the final stages of converting an Oracle database to PostgreSQL. I have just received the Perl script which will drive the application and call my stored functions. When the store

[GENERAL] Perl DBIx::SearchBuilder and pg_atoi: zero-length string?

2004-03-24 Thread Steve Wampler
Hi, I just discovered that perl module: DBIx::SearchBuilder 0.97 has a LoadByCols() method that builds a generic SELECT query that seems to assume '' is a valid value to test on any field. (The code is : -- sub LoadByCols { my $

[GENERAL] postmaster won't start under cygwin after password change

2004-03-24 Thread Bill Harris
I asked on cygwin but no answer yet; maybe someone here knows. I've been running PostgreSQL 7.4.1 successfully for a few weeks under an updated cygwin, but it stopped working over the weekend. That happened to be the time XP Pro decided my postgres password should expire. I gave it a new passwor

Re: [GENERAL] unicode error and problem

2004-03-24 Thread Richard Huxton
On Wednesday 24 March 2004 14:15, Tatsuo Ishii wrote: > > I received a unicode CSV file from someone (the file was created on a > > windows system) and I'm trying to import it into postgresql. When it gets > > to a line that isn't ascii it prints the following error and aborts: > > "ERROR: copy:

[GENERAL] case statement as inline function?

2004-03-24 Thread Mike Nolan
Periodically I need to write a complex case statement that I'd like to be able to refer to in more than one place in a SQL command without having to make sure that each copy of the case statement remains the same as the query (to produce a mailing) is tailored. Is there any way to treat it like an

Re: [GENERAL] ole db

2004-03-24 Thread Joshua D. Drake
It's a dead project ... I couldn't find any useable output (that's more an indictment of my coding skills than anything else). I signed up and contacted the other two developers listed, but never got a response. If you're keen on the OLE DB / ADO play ground, you'll need to use the OLEDB-ODBC br

Re: [GENERAL] partial VACUUM FULL

2004-03-24 Thread scott.marlowe
On Tue, 23 Mar 2004, Tom Lane wrote: > Bill Moran <[EMAIL PROTECTED]> writes: > > Was this true for some previous version? I could have swore I read somewhere > > that vacuum_mem had to be set high enough or vacuum wouldn't be able to clean > > everything up (aside from anything locked in transac

Re: No pg_hba.conf entry for host localhost (was: Re: [GENERAL]

2004-03-24 Thread Tom Lane
> El Mié 24 Mar 2004 10:25, [EMAIL PROTECTED] escribió: >> But still is this considered secure? Why would you think it's any less secure than your localhost (TCP) entry? It's fairly easy to configure a Unix-domain socket to be *more* secure than TCP, because you can use file permissions to li

Re: [GENERAL] unicode error and problem

2004-03-24 Thread Tatsuo Ishii
> I received a unicode CSV file from someone (the file was created on a > windows system) and I'm trying to import it into postgresql. When it gets to > a line that isn't ascii it prints the following error and aborts: "ERROR: > copy: line 33, Invalid UNICODE character sequence found (0xd956)". W