Why?

From: Juan Carlos Perez Vazquez <cray2(at)mail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Why?
Date: 2000-08-27 11:19:44
Message-ID: 385273147.967375184629.JavaMail.root@web443-mc.mail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi!

Why does not work this?

CREATE FUNCTION PWDCHG () RETURNS OPAQUE AS '
BEGIN
ALTER USER utest WITH PASSWORD ''ptest'';
END;
' LANGUAGE 'plpgsql';

select PWDCHG();
ERROR: typeidTypeRelid: Invalid type - oid = 0

and this other?

CREATE FUNCTION PWDCHG () RETURNS bool AS '
BEGIN
ALTER USER utest WITH PASSWORD ''ptest'';
RETURN ''t'';
END;
' LANGUAGE 'plpgsql';

select PWDCHG();
ERROR: copyObject: don't know how to copy 646

Regards,
Juan Carlos.

______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

Responses

  • Re: Why? at 2000-08-27 20:25:19 from Stephan Szabo

Browse pgsql-hackers by date

  From Date Subject
Next Message Philip Warner 2000-08-27 11:47:58 Re: pg_dump -o does not work on current
Previous Message t-ishii 2000-08-27 11:11:42 pg_dump -o does not work on current