[GENERAL] Re: Money...

2001-03-11 Thread drevil
On the other hand, the money you save on Oracle licences can be spent on bigger iron to run PG - so for non-exotic installations you should be able to come out ahead. Certainly if you were thinking of Intel hardware I'd expect PG to do well in terms of price/performance. That is exactly

[GENERAL] Data type for storing images?

2001-03-11 Thread drevil
I would like to store some images in my Postgres database. These will all be thumbnails, limited to 4k or 5k. I know that PG has an 8k row limit, but this should be fine, because there's not much else in the row. Which data type could I use to store them, and is there a performance cost for

[GENERAL] How to use locks, for DB noivces?

2001-03-09 Thread drevil
I've never used the locking features of Postgres before, and now I find that I need to use them. I read through the instructions, but I've never taken a database theory course so I don't understand all the terms they used. Here's what I need to do: The database keeps accounts. If one process

[GENERAL] DES in Postgres?

2001-03-01 Thread drevil
Is there a function in Postgres which will DES-encrypt a given string with a given key? If not, has anyone out there written a linkable C function to do that? I know it's easy to do, if you know C, but I don't know C. Thanks

[GENERAL] Strange bug in PLpgsql?

2001-02-10 Thread drevil
When I try this function: CREATE FUNCTION pgtest(INT4, INT4, INT4, INT4, INT8, INT4, INT2, INT8, VARCHAR(100), VARCHAR(100), INT4, CHAR(40), INT4) RETURNS INT4 AS ' DECLARE result INT4; BEGIN result := $1 + 12; RETURN result; END; ' LANGUAGE 'plpgsql'; it always returns NULL. If I have less

[GENERAL] Resolved, maybe (Re: Strange bug in PLpgsql?)

2001-02-10 Thread drevil
Well, I did a dropdb and then I recreated everything, and then it started working the way I thought it should. There must have been some function in there that was confusing it, or who knows what. As I'm writing and debugging functions, I do a lot of DROP FUNCTION and CREATE FUNCTION, so maybe

[GENERAL] Not resolved, maybe (Re: Strange bug in PLpgsql?)

2001-02-10 Thread drevil
The bug is back, and I can't figure it out.

Re: [GENERAL] How to tell if that UPDATE worked?

2001-01-11 Thread drevil
Do a GET DIAGNOSTICS SELECT PROCESSED INTO int4_variable; directly after an INSERT, UPDATE or DELETE statement and you'll know how many rows have been hit. Also you can get the OID of an inserted row with GET DIAGNOSTICS SELECT RESULT INTO

[GENERAL] UPDATE in pl/pgsql

2001-01-08 Thread drevil
Quick question: Is there a way to find out how many rows an UPDATE affected in pl/pgsql? Thanks

[GENERAL] DES encryption in Postgres?

2001-01-08 Thread drevil
I looked through all the docs, and I couldn't find a function which would simply DES encrypt a string. Is DES not implemented in Postgres? Or am I just not finding the function? Thanks

[GENERAL] Re: SSL

2000-12-27 Thread drevil
I would also like to use SSL, or better SSH, with Postgres. I know I could use SSH tunneling, but it would be even better if it were integrated. Does anyone know if this is possible? Thanks

[GENERAL] Just upgraded to 7.0.3

2000-12-17 Thread drevil
and everything went smoothly. My main reason for doing this was that I needed to recompile the whole thing to allow functions with more than 16 args, and if I'm going to recompile, why not upgrade to 7.03 anyway? It's also good because I'll get a chance to make sure everything I'm going works

[GENERAL] How to make user-defined data types?

2000-12-16 Thread drevil
I know it is possible to define a new data type which is a composite of PG native types, but there seems to be little or no documentation (that I can find) about how to do this. For example, I have a lot of data in the form of an address, which contains address-line-1, address-line-2, city,