Re: [GENERAL] hardware failure - data recovery

2006-10-19 Thread Rick Gigger
Ron Johnson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/19/06 00:46, Rick Gigger wrote: Ron Johnson wrote: On 10/18/06 23:52, Rick Gigger wrote: Rick Gigger wrote: Ron Johnson wrote: On 10/18/06 19:57, Rick Gigger wrote: [snip] Not much that is useful. I think this is a

Re: [GENERAL] Newbie needs help with ERROR: could not write to file

2006-10-19 Thread Shane Ambler
Ron Johnson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/18/06 20:41, andrew plata wrote: I am trying to following the instructions at URL below to try to create a database called web_database required for phpPgAdmin. When I try to do this I get the following error: template1=#

[GENERAL] problems installing pg on solaris

2006-10-19 Thread Georgi Petrov
Hi, I am using and installing pg on many servers running FreeBSD and it works perfect. Now I need to install a brand new Solaris 10 ( from opensolaris.org) on amd64 (Opteron) and install pg on it. Till now I installed pg from source (on FreeBSD and many linux systems). My first question : Is

[GENERAL] Interval referential integrity

2006-10-19 Thread Rodrigo Sakai
Hello all, Im developing a specialist application that needs a different kind of referential integrity! I need interval referential integrity where the bounds of the referenced interval must overlaps (or be equal) the bounds of the referencing interval! For example,

[GENERAL] timestamp as primary key?

2006-10-19 Thread Joe Kramer
Hello, I have table for online chat system that keep messages sent between users. CREATE TABLE chat_message ( message_time timestamp without time zone NOT NULL DEFAULT now(), message_body text, user_id_from bigint, user_id_to bigint, CONSTRAINT chat_message_pkey PRIMARY KEY (message_time)

Re: [GENERAL] timestamp as primary key?

2006-10-19 Thread Tomasz Ostrowski
On Thu, 19 Oct 2006, Joe Kramer wrote: Question: is it okay to use timestamp as primary key, or there is possibility of collision? (Meaning two processes may INSERT into table within same millisecond.) It is a web application. If your insert fail you can always try again after some random

[GENERAL] Overload after some minutes, please help!

2006-10-19 Thread Peter Bauer
Hi all, we are struggling for some time now with PostgreSQL 8.1.4 and the situation is pretty critical so please help with whatever comes to your mind. We even did an upgrade from version 7.4.13, tried different vacuum configurations and optimized the configuration. There is a table called

Re: [GENERAL] hardware failure - data recovery

2006-10-19 Thread Rick Gigger
Rick Gigger wrote: Ron Johnson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/19/06 00:46, Rick Gigger wrote: Ron Johnson wrote: On 10/18/06 23:52, Rick Gigger wrote: Rick Gigger wrote: Ron Johnson wrote: On 10/18/06 19:57, Rick Gigger wrote: [snip] Not much that is useful.

Re: [GENERAL] Overload after some minutes, please help!

2006-10-19 Thread Tomasz Ostrowski
On Thu, 19 Oct 2006, Peter Bauer wrote: A vaccum of the whole database is performed every 10 minutes with cron What is the command you use? Maybe you are vaccuming with -f and locking the whole table. Regards Tometzky -- ...although Eating Honey was a very good thing to do, there was a

[GENERAL] PostgreSQL and Munin

2006-10-19 Thread DANTE Alexandra
Hello List, I work with PostgreSQL 8.1.3 on an IA64 server with Red Hat Enterprise Linux 4 AS and I try to install Munin 1.2.4. To do that, I downloaded these RPM from Sourceforge : - munin-1.2.4-8rhel4.noarch.rpm -munin-node-1.2.4-8rhel4.noarch.rpm and munin-plugins-postgresql-0.3.tar.tar

Re: [GENERAL] PostgreSQL and Munin

2006-10-19 Thread Robin Ericsson
On 10/19/06, DANTE Alexandra [EMAIL PROTECTED] wrote: My problem is that I have not found any RPM for perl-rrdtool and rrdtool for IA64 and RHEL4-AS (for the others, it's OK). Does someone know where I can find them or tell me where I can find the associated tar.gz archive ? Download the

Re: [GENERAL] Overload after some minutes, please help!

2006-10-19 Thread Peter Bauer
Hi, its just a vacuumdb --all. We already learned that full vacuums are evil because the database was carrupted after some time. Regards, Peter 2006/10/19, Tomasz Ostrowski [EMAIL PROTECTED]: On Thu, 19 Oct 2006, Peter Bauer wrote: A vaccum of the whole database is performed every 10

Re: [GENERAL] Overload after some minutes, please help!

2006-10-19 Thread Tom Lane
Peter Bauer [EMAIL PROTECTED] writes: There is a table called tableregistrations where per day about 1 million rows are INSERTed 2 SELECTs should be performed on it 1 UPDATEs should be performed where about 100 rows are updated with each execution 1 DELETEs should be performed

Re: [GENERAL] PostgreSQL and Munin

2006-10-19 Thread DANTE Alexandra
Hello Robin, hello List, I have also spent several minutes searching the src.rpm, but the only rpm source that I found was for Fedora Core... For example, in the site http://rpm.pbone.net/index.php3/stat/4/idpl/2919466/com/perl-rrdtool-1.2.13-1.fc3.rf.x86_64.rpm.html, the rpm source available

Re: [GENERAL] problems installing pg on solaris

2006-10-19 Thread Michael Fuhr
On Thu, Oct 19, 2006 at 01:42:48AM -0700, Georgi Petrov wrote: Is it better to install pg on Solaris from packages or build it from source? Define better. I prefer to build from source so I know I'm using the same source code the developers are using and so I can control the configure

Re: [GENERAL] timestamp as primary key?

2006-10-19 Thread Richard Huxton
Joe Kramer wrote: Hello, I have table for online chat system that keep messages sent between users. CREATE TABLE chat_message ( message_time timestamp without time zone NOT NULL DEFAULT now(), Hmm - timestamp without time zone. So you don't actually care when the message was sent? Or you

Re: [GENERAL] Overload after some minutes, please help!

2006-10-19 Thread Richard Huxton
Peter Bauer wrote: - Two of these clusters are using the same PostgreSQL installation to share the data Just checking - you're not sharing the same data files between two machines here, are you? Because that's not good. -- Richard Huxton Archonet Ltd ---(end of

Re: [GENERAL] timestamp as primary key?

2006-10-19 Thread John D. Burger
cckramer wrote: I have table for online chat system that keep messages sent between users. Question: is it okay to use timestamp as primary key, or there is possibility of collision? (Meaning two processes may INSERT into table within same millisecond.) It is a web application. tometzky

Re: [GENERAL] hardware failure - data recovery

2006-10-19 Thread Ray Stell
On Thu, 19 Oct 2006 06:14:46 -0600, Rick Gigger wrote: I think we've got it figure out though. We were able to patch up the db enough to extract the data with some help from google and old postings from Tom. It would be really great if you put down the specifics of what you googled/old

Re: [GENERAL] timestamp as primary key?

2006-10-19 Thread AgentM
On Oct 19, 2006, at 10:30 , John D. Burger wrote: cckramer wrote: I have table for online chat system that keep messages sent between users. Question: is it okay to use timestamp as primary key, or there is possibility of collision? (Meaning two processes may INSERT into table within

Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Chris Browne
[EMAIL PROTECTED] (Tom Lane) writes: Chris Browne [EMAIL PROTECTED] writes: (gdb) print addr-ai_addr-sa_data $18 = \000\001\177\000\000\001\000\000\000\000\000\000\000 Hmm, that looks a bit odd --- what's the full declaration of structs sockaddr and sockaddr_in on that machine? struct

[GENERAL] PostGIS

2006-10-19 Thread Bob Pawley
Can anyone point me to an overview of PostGIS and how it is being used??? Bob Pawley

Re: [GENERAL] PostGIS

2006-10-19 Thread Woody Woodring
Here is their web page: http://postgis.refractions.net/ I am probably not the best to answer how it is used because we use it just to allow index on spatial data (coordinates). You may ask on the postgis mailing list. Woody From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [GENERAL] Overload after some minutes, please help!

2006-10-19 Thread Peter Bauer
Hi, the drbd device can only be active and mounted on one machine, so the other is just in standby. Regards, Peter 2006/10/19, Richard Huxton dev@archonet.com: Peter Bauer wrote: - Two of these clusters are using the same PostgreSQL installation to share the data Just checking - you're not

Re: [GENERAL] Overload after some minutes, please help!

2006-10-19 Thread Peter Bauer
thank you, so we will perform the tests with such a vacuum configuration, br, Peter 2006/10/19, Tom Lane [EMAIL PROTECTED]: Peter Bauer [EMAIL PROTECTED] writes: There is a table called tableregistrations where per day about 1 million rows are INSERTed 2 SELECTs should be performed on

Re: [GENERAL] PostGIS

2006-10-19 Thread James Cradock
On Oct 19, 2006, at 11:08 AM, Bob Pawley wrote:Can anyone point me to an overview of PostGIS and how it is being used??? Bob,Ā PostGIS provides extensions to PostgreSQL's procedural language and geometric data types so that it can store geo-referenced data, and so that you can query this data using

Re: [GENERAL] Interval referential integrity

2006-10-19 Thread Jim C. Nasby
On Thu, Oct 19, 2006 at 07:51:17AM -0300, Rodrigo Sakai wrote: I?m developing a specialist application that needs a different kind of referential integrity! I need interval referential integrity where the bounds of the referenced interval must overlaps (or be equal) the bounds of the

Re: [GENERAL] timestamp as primary key?

2006-10-19 Thread Jim C. Nasby
On Thu, Oct 19, 2006 at 10:36:29AM -0400, AgentM wrote: Only if each message is contained in its own transaction since now() is effectively a constant throughout a transaction. In this case, I would choose a surrogate key since it is likely that the table will be referenced. See

Re: [GENERAL] PostGIS

2006-10-19 Thread Sandeep Kumar Jakkaraju
I use postgis to wipe my ASS ...no good documentation ...in what units is the result of distance(geometry,geometry)..what is distance_sphere(geometry,geometry).. when u give same geometry as both parameters it gives a non-zero value On 10/19/06, James Cradock [EMAIL PROTECTED] wrote: On Oct

Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Tom Lane
Chris Browne [EMAIL PROTECTED] writes: [EMAIL PROTECTED] (Tom Lane) writes: Chris Browne [EMAIL PROTECTED] writes: (gdb) print addr-ai_addr-sa_data $18 = \000\001\177\000\000\001\000\000\000\000\000\000\000 Hmm, that looks a bit odd --- what's the full declaration of structs sockaddr and

Re: [GENERAL] Overload after some minutes, please help!

2006-10-19 Thread Jim C. Nasby
On Thu, Oct 19, 2006 at 01:57:56PM +0200, Peter Bauer wrote: In the update statement, don't wrap the ID values in quotes. At best it's extra work; at worse it will fool the planner into not using the index. shared_buffers = 1000 # min 16 or max_connections*2, 8KB each This is *way*

Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Chris Browne
[EMAIL PROTECTED] (Tom Lane) writes: Brad Nicholson [EMAIL PROTECTED] writes: On Wed, 2006-10-18 at 15:59 -0400, Tom Lane wrote: Also, do regular connections to this postmaster work across TCP/IP? If getaddrinfo() is broken I'd expect there to be problems binding to the postmaster's listen

Re: [GENERAL] PostGIS

2006-10-19 Thread Bob Pawley
Thanks Jim Bob - Original Message - From: James Cradock To: Postgresql Cc: Bob Pawley Sent: Thursday, October 19, 2006 8:35 AM Subject: Re: [GENERAL] PostGIS On Oct 19, 2006, at 11:08 AM, Bob Pawley wrote: Can anyone point me to an overview of

Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Chris Browne
[EMAIL PROTECTED] (Tom Lane) writes: Chris Browne [EMAIL PROTECTED] writes: [EMAIL PROTECTED] (Tom Lane) writes: Chris Browne [EMAIL PROTECTED] writes: (gdb) print addr-ai_addr-sa_data $18 = \000\001\177\000\000\001\000\000\000\000\000\000\000 Hmm, that looks a bit odd --- what's the full

Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Tom Lane
Chris Browne [EMAIL PROTECTED] writes: Is there a more elegant way of setting the requested port to 0 than my 2-liner? What I'm tempted to do is add this to pg_getaddrinfo_all (in src/backend/libpq/ip.c): { /* not all versions of getaddrinfo() zero *result on failure */

Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Chris Browne
[EMAIL PROTECTED] (Tom Lane) writes: Chris Browne [EMAIL PROTECTED] writes: Is there a more elegant way of setting the requested port to 0 than my 2-liner? What I'm tempted to do is add this to pg_getaddrinfo_all (in src/backend/libpq/ip.c): { /* not all versions of getaddrinfo()

Re: [GENERAL] Stats Collector Won't Start

2006-10-19 Thread Tom Lane
Chris Browne [EMAIL PROTECTED] writes: [EMAIL PROTECTED] (Tom Lane) writes: What I'm tempted to do is add this to pg_getaddrinfo_all (in src/backend/libpq/ip.c): ... That seems to work fine, too. And that seems somewhat more portable/elegant/something. OK, patch applied as far back as 7.4

Re: [GENERAL] PostgreSQL and Munin

2006-10-19 Thread Robin Ericsson
On 10/19/06, DANTE Alexandra [EMAIL PROTECTED] wrote: Hello Robin, hello List, Can I use it on RHEL4-AS ? I also tried to find the rpm sources on the Red Hat web site, without success... /index.php3/stat/3/srodzaj/2/search/rrdtool-1.2.13-1.fc3.rf.src.rpm Download the source and try. rpmbuild

[GENERAL] pg_dump encoding problem

2006-10-19 Thread Jeff Davis
I am migrating a database from 7.4 in SQL_ASCII encoding to 8.1 in UTF8. I made a pg_dump of the 7.4 database. I had difficulty (there are invalid UTF8 characters in the original database, like 0xb9) going straight into 8.1 with UTF8, so I tried importing it in a temporary 8.1 cluster that I set

[GENERAL] Help needed

2006-10-19 Thread Craig_Walker
I want to upgrade a system from 7.3.8 ro 8.1.5 I am new to Psql and looking for handy hints Any known problems or pit-falls ? Anything we need to do in preparation ? Cheers CraigW ---(end of broadcast)--- TIP 3: Have you checked our extensive

[GENERAL] trigger postgresql 7.4

2006-10-19 Thread Daniel . Chmielewski
Hi, I have a question connected with postgres procedural langauge. Version of Postgres: PostgreSQL 7.4.2 on i686-pc-linux-gnu, compiled by GCC gcc I have a table on which I have created many triggers on the same event BEFORE UPDATE. I have 3 these triggers. In each of this trigger I have a

[GENERAL] division by zero error in a request

2006-10-19 Thread Bernard Grosperrin
I wants to make a view giving me some statistics. I am not sure to understand why something like this SELECT location_id, (sold_parts_amount_dly + sold_labor_amount_dly) / (sold_parts_amount_dly + sold_labor_amount_dly) from sales give me a division by zero error? If that is not the way to go,

[GENERAL] FastCgi / PostgreSQL: FATAL: Ident authentication failed for user user_name

2006-10-19 Thread binberati
Hi, I have a strange problem running Django on a GrokThis.net shared hosting account: Environment: -- Apache/2.0.59 (Unix) mod_fastcgi/2.4.2 PostgreSQL 8.1.3 -- settings.py:

Re: [GENERAL] Help needed

2006-10-19 Thread Richard Broersma Jr
I want to upgrade a system from 7.3.8 ro 8.1.5 I am new to Psql and looking for handy hints Any known problems or pit-falls ? Anything we need to do in preparation ? The Postgresql manual is a good place to start: http://www.postgresql.org/docs/8.1/interactive/install-upgrading.html

Re: [GENERAL] division by zero error in a request

2006-10-19 Thread Oisin Glynn
Bernard Grosperrin wrote: I wants to make a view giving me some statistics. I am not sure to understand why something like this SELECT location_id, (sold_parts_amount_dly + sold_labor_amount_dly) / (sold_parts_amount_dly + sold_labor_amount_dly) from sales give me a division by zero error?

Re: [GENERAL] Overload after some minutes, please help!

2006-10-19 Thread Peter Bauer
thank you very much, we will test it br, Peter 2006/10/19, Jim C. Nasby [EMAIL PROTECTED]: On Thu, Oct 19, 2006 at 01:57:56PM +0200, Peter Bauer wrote: In the update statement, don't wrap the ID values in quotes. At best it's extra work; at worse it will fool the planner into not using the

[GENERAL] Ubuntu Help

2006-10-19 Thread kbajwa
Hello: I am going to install Ubuntu OS under their LAMP installation. This LAMP installation installs mySQL. Is there any way I can install postgreSQL instead of mySQL? Has anybody created a LAMP to install Ubuntu, Apache, postgreSQL PHP? Kirt

Re: [GENERAL] Ubuntu Help

2006-10-19 Thread Leonel Nunez
Hello: I am going to install Ubuntu OS under their LAMP installation. This LAMP installation installs mySQL. Is there any way I can install postgreSQL instead of mySQL? Has anybody created a LAMP to install Ubuntu, Apache, postgreSQL PHP? Kirt after instalation do sudo apt-get

Re: [GENERAL] Ubuntu Help

2006-10-19 Thread Bricklen Anderson
kbajwa wrote: Hello: I am going to install Ubuntu OS under their LAMP installation. This LAMP installation installs mySQL. Is there any way I can install postgreSQL instead of mySQL? Has anybody created a LAMP to install Ubuntu, Apache, postgreSQL PHP? Kirt I don't know about a

Re: [GENERAL] Ubuntu Help

2006-10-19 Thread kbajwa
Do I need to remove mySQL or leave it installed? Kirt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leonel Nunez Sent: Thursday, October 19, 2006 4:02 PM To: kbajwa Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Ubuntu Help Hello: I am

Re: [GENERAL] Ubuntu Help

2006-10-19 Thread Leonel Nunez
Do I need to remove mySQL or leave it installed? Kirt If you don't need itremoveit leonel ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[GENERAL] VACUUM and open transactions

2006-10-19 Thread Joseph Shraibman
I'm running postgres 8.0.8. I have a table that is updated very rapidly, so I vacuum it every 10 minutes. The problem is that I sometimes have transactions that hang out for a long time without doing anything. These transactions are preventing VACUUM from cleaning up tuples that were

Re: [GENERAL] VACUUM and open transactions

2006-10-19 Thread Martijn van Oosterhout
On Thu, Oct 19, 2006 at 04:18:50PM -0400, Joseph Shraibman wrote: I'm running postgres 8.0.8. I have a table that is updated very rapidly, so I vacuum it every 10 minutes. The problem is that I sometimes have transactions that hang out for a long time without doing anything. These

Re: [GENERAL] VACUUM and open transactions

2006-10-19 Thread Joseph S
Martijn van Oosterhout wrote: Sure, don't keep transactions open for so long. Is there a particular reason you do that? Because I have a leak somewhere? Even if the transaction isn't that old it will still cause me some table bloat in the meantime. The problem is that the old transaction

Re: [GENERAL] VACUUM and open transactions

2006-10-19 Thread Martijn van Oosterhout
On Thu, Oct 19, 2006 at 04:25:09PM -0400, Joseph S wrote: The problem is that the old transaction can see effects of later started transactions, so VACUUM can't delete the later stuff either... How can it see effects of transactions that started after it? Check the documentation for the

Re: [GENERAL] Help needed

2006-10-19 Thread Casey Duncan
On Oct 19, 2006, at 8:19 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I want to upgrade a system from 7.3.8 ro 8.1.5 I am new to Psql and looking for handy hints Any known problems or pit-falls ? You'll need to dump the database and reload (pg_dump and pg_restore), 8.1 uses a

Re: [GENERAL] VACUUM and open transactions

2006-10-19 Thread Joseph S
But if the tuple in question was created and then deleted after the transaction, the transaction should still not need to see it. Martijn van Oosterhout wrote: On Thu, Oct 19, 2006 at 04:25:09PM -0400, Joseph S wrote: The problem is that the old transaction can see effects of later started

[GENERAL] Latest /etc/rc.d/init.d/postgresql startup/shutdown script

2006-10-19 Thread Maurice Yarrow
Hello Postgres-General users I currently am upgrading from PostgreSQL 7.3.4-RH to PostgreSQL 8.1.5. Everything fine so far: have installed 8.1.5 into /usr/local/pgsql, of course, and am running 8.1.5 on port 5433, while still running 7.3.4 (in /var/lib/... and /usr/bin/pg...) Then (also,

[GENERAL] Some newbie question

2006-10-19 Thread Ritesh Nadhani
Hello Just trying to play around with PostgreSQL. Some commands and their result are: test=# create table ncbi ( id serial, title varchar(50), abstract text, primary key(id)); NOTICE: CREATE TABLE will create implicit sequence ncbi_id_seq for serial column ncbi.id NOTICE: CREATE TABLE /

Re: [GENERAL] Latest /etc/rc.d/init.d/postgresql startup/shutdown script

2006-10-19 Thread Tom Lane
Maurice Yarrow [EMAIL PROTECTED] writes: I am hoping that there is an equivalent upgraded init.d/postgresql startup/shutdown script available for the postgres 8.1 tree. The Postgres project proper doesn't maintain system-specific start scripts. Look in the RPM distributions instead ---

Re: [GENERAL] Some newbie question

2006-10-19 Thread Jeff Davis
On Thu, 2006-10-19 at 18:32 -0500, Ritesh Nadhani wrote: Hello Just trying to play around with PostgreSQL. Some commands and their result are: test=# create table ncbi ( id serial, title varchar(50), abstract text, primary key(id)); NOTICE: CREATE TABLE will create implicit sequence

Re: [GENERAL] Some newbie question

2006-10-19 Thread Ritesh Nadhani
Thanks. So the implicit value means that PG gave it a name? Jeff Davis wrote: On Thu, 2006-10-19 at 18:32 -0500, Ritesh Nadhani wrote: Hello Just trying to play around with PostgreSQL. Some commands and their result are: test=# create table ncbi ( id serial, title varchar(50), abstract

Re: [GENERAL] VACUUM and open transactions

2006-10-19 Thread Tom Lane
Joseph S jks@selectacast.net writes: But if the tuple in question was created and then deleted after the transaction, the transaction should still not need to see it. No, because it might have taken a snapshot during the interval where the tuple was good. regards, tom

Re: [GENERAL] Some newbie question

2006-10-19 Thread Jeff Davis
On Thu, 2006-10-19 at 19:05 -0500, Ritesh Nadhani wrote: Thanks. So the implicit value means that PG gave it a name? Right, when you declare a column to be a primary key, PostgreSQL must create an index to enforce the unique constraint. This index must have some kind of name, so PostgreSQL

[GENERAL] SQL function inlining

2006-10-19 Thread John D. Burger
I'm having trouble figuring out when (if) the planner inlines sql functions (I'm running 7.4). I was assuming that pure sql functions are kind of like views with parameters, but I can't seem to see any cases where functions that select from a table get inlined. For instance: create

Re: [GENERAL] SQL function inlining

2006-10-19 Thread Tom Lane
John D. Burger [EMAIL PROTECTED] writes: I'm having trouble figuring out when (if) the planner inlines sql functions (I'm running 7.4). I was assuming that pure sql functions are kind of like views with parameters, but I can't seem to see any cases where functions that select from a

[GENERAL] plpgsql FOUND bug when SELECT INTO assigns a NULL value?

2006-10-19 Thread Karl O. Pinc
Hi, The docs say: A SELECT INTO statement sets FOUND true if it returns a row, false if no row is returned. I'm running a plpgsql procedure from a trigger and am doing a SELECT INTO foo bar ... where a row matches the selection criteria, but the value of that row's bar column is NULL. The

Re: [GENERAL] PostGIS

2006-10-19 Thread Michael Fuhr
On Thu, Oct 19, 2006 at 09:31:40PM +0530, Sandeep Kumar Jakkaraju wrote: I use postgis to wipe my ASS ... no good documentation ... If you find the documentation lacking then please consider posting to postgis-users with suggestions for improving it. Even better, submit a patch :-) in what

Re: [GENERAL] plpgsql FOUND bug when SELECT INTO assigns a NULL value?

2006-10-19 Thread Tom Lane
Karl O. Pinc [EMAIL PROTECTED] writes: I would expect that because a row exists, even though the value assigned is NULL, FOUND would be TRUE. Are my expectations wrong? No, but I think your code is. Please provide a test case demonstrating this behavior. regards, tom

Re: [GENERAL] Ubuntu Help

2006-10-19 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/19/06 14:34, kbajwa wrote: Do I need to remove mySQL or leave it installed? It certainly won't *hurt* to leave it there, but it's always *smart* to purge un-needed systems from a server. As for installing the _A_P porrtions of LAMP, if lamp

Re: [GENERAL] VACUUM and open transactions

2006-10-19 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/19/06 15:22, Martijn van Oosterhout wrote: On Thu, Oct 19, 2006 at 04:18:50PM -0400, Joseph Shraibman wrote: I'm running postgres 8.0.8. I have a table that is updated very rapidly, so I vacuum it every 10 minutes. The problem is that I

Re: [GENERAL] Latest /etc/rc.d/init.d/postgresql startup/shutdown

2006-10-19 Thread Shane Ambler
Maurice Yarrow wrote: In fact, the only thing I cannot find is a recent copy (for 8.1.5 located in /usr/local/pgsql) of an init.d startup script for the postgres, equivalent to the currently running /etc/rc.d/init.d/postgresql(which is about 250 lines of shell). If you download the

Re: [GENERAL] trigger postgresql 7.4

2006-10-19 Thread A. Kretschmer
am Thu, dem 19.10.2006, um 2:49:23 -0700 mailte [EMAIL PROTECTED] folgendes: Hi, I have a question connected with postgres procedural langauge. Version of Postgres: PostgreSQL 7.4.2 on i686-pc-linux-gnu, compiled by GCC gcc Outdated. I have a table on which I have created many

Re: [GENERAL] Some newbie question

2006-10-19 Thread Shane Ambler
Ritesh Nadhani wrote: Hello Just trying to play around with PostgreSQL. Some commands and their result are: test=# create table ncbi ( id serial, title varchar(50), abstract text, primary key(id)); NOTICE: CREATE TABLE will create implicit sequence ncbi_id_seq for serial column ncbi.id