[GENERAL] EnterpriseDB install of Postgres on Ubuntu 10.04 library path issues - no version information available (required by /lib/libblkid.so.1)

2012-04-04 Thread Scott Chapman
Downloaded http://get.enterprisedb.com/postgresql/postgresql-9.1.3-1-linux.run Ran it. Install went fine. StackBuilder install of PostGIS 1.5 failed. No error given. I can't find it in the logs. So I ran /tmp/edb_postgis_1_5_pg91.bin by hand. Everything went fine there. Then I wanted to install

[GENERAL] How to use custom functions created by my2pg.pl?

2004-11-12 Thread Scott Chapman
The my2pg.pl script creates custom functions that help with the MySQL "set" column type. I can't figure out how to use the functions once I have the database migrated into Postgres. Can someone please explain how to make use of them? In MySQL, the table exists: CREATE TABLE accessright ( acce

[GENERAL] How to quote text before inserting into database?

2003-10-17 Thread Scott Chapman
I am working with Python (psycopg). I have HTML with embedded Python that I'm inserting into a database and it could contain any character. Single quotes, at least, must be escaped (to two single quotes, right?) before inserting it into Postgres. This poses a problem when I get the data out

Re: [GENERAL] HTML generation with PL/PgSQL

2003-10-24 Thread Scott Chapman
On Thursday 23 October 2003 11:38, Birahim FALL wrote: > Is such a product exists (preferably opensource). > I'm ready to go for python etc, but I really wuld have to re-educate > myself. Bir, There are a LOT of ways to make web pages with data from Postgres. I'd suggest you get: The latest

Re: [GENERAL] Recomended FS

2003-10-24 Thread Scott Chapman
On Friday 24 October 2003 16:23, scott.marlowe wrote: > Right, but NONE of the benchmarks I've seen have been with IDE drives with > their cache disabled, which is the only way to make them reliable under > postgresql should something bad happen. but thanks for the benchmarks, > I'll look them ove

[GENERAL] Automatic auditing suggestion

2003-10-29 Thread Scott Chapman
In my further discussion with Andrew offline, we came up with a joint suggestion to have PostgreSQL do automatic auditing. This would be VERY NICE, imho. Any input? Scott wrote: > It seems like it would be nice if you could flip a toggle on a > table and have it automatically build audit entr

Re: [GENERAL] Automatic auditing suggestion

2003-10-30 Thread Scott Chapman
On Thursday 30 October 2003 06:38, scott.marlowe wrote: > On Wed, 29 Oct 2003, Scott Chapman wrote: > > In my further discussion with Andrew offline, we came up with a joint > > suggestion to have PostgreSQL do automatic auditing. This would be VERY > > NICE, imho. Any input

Re: [GENERAL] SQL-question: returning the id of an insert querry

2003-11-09 Thread Scott Chapman
On Sunday 09 November 2003 03:13, Martijn van Oosterhout wrote: > After you've done the insert on the address table, you can use > currval('address_id_seq') (or equivalent) to get the ID. Ofcourse you > have to have used nextval() for the original insert. What if someone else inserts another addre

Re: [GENERAL] SQL-question: returning the id of an insert querry

2003-11-10 Thread Scott Chapman
On Monday 10 November 2003 08:23, David Green wrote: > Are X & Y two different connections? > If you execute 2 statements on the same connection and then get > currval() it will give the last generated id. > > Ex. > On 1 connection: > INSERT INTO A (fld) VALUES (val); -- id generated = 1 > INSERT I