| From: | M(dot)Mazurek(at)poznan(dot)multinet(dot)pl |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | simple C function |
| Date: | 2000-05-19 15:54:55 |
| Message-ID: | Pine.LNX.4.21.0005191750320.8816-100000@yoyo.poznan.mtl.pl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi,
I'm trying to write a simple C function:
char *pg_crypt (char *pass) {
char *salt="xyz";
char *res;
res = (char *) palloc(14);
res=crypt(pass,salt);
return res;
}
CREATE FUNCTION pg_crypt(text) RETURNS text as
'/home/mazek/pgsql/pg_crypt.so' LANGUAGE 'c';
psql just got stuck and I can't even DROP this function, because psql
hangs. Can You give me a hint me where should I look for errors. How to
get rid of this function without reinitializing $PGDATA and destroying
other data (accordind to former discussion:) ).
LINUX RH6.2,PG 7.0
Marcin Mazurek
--
administrator
MULTINET SA o/Poznan
http://www.multinet.pl/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Culberson, Philip | 2000-05-19 16:08:35 | RE: Question about databases in alternate locations... |
| Previous Message | Richard Smith | 2000-05-19 15:34:21 | beginner Table data type question |