[ADMIN] recurring in function

1999-08-10 Thread sk . list
Hi! I have interesting in 2 problems: 1. I have xxx.so written in C for postgres countaining function yyy(). May yyy() refers to postgres with other requests? yyy() { ... PQexec("... any request ..."); ... } application: select * from aaa where yyy()='bbb'; 2. I make module xxx.so contaning fu

Re: [ADMIN] transfer of database

1999-08-10 Thread John M. Flinchbaugh
On Wed, 11 Aug 1999, Darren Chan wrote: > I have 2 servers running PostgreSQL 6.5.1 with different databases. Is > it possible to transfer one of the databases from one machine to > another? > I tried pg_dump streamdb > streamdb.pgdump to backup > and cat streamdb.pgdump | psql streamdb to restore

RE: [ADMIN] Elapsed time in vacuum?

1999-08-10 Thread Bradford L. Barrett
> If the machines are identical distributions, libs, and layout you can copy > over the entire pgsql tree for your data rollover. You won't have any time > to test on your very loaded server before you know if something is wrong but > you might just want to keep a copy around so that two mv's wi

[ADMIN] transfer of database

1999-08-10 Thread Darren Chan
Hello, I have 2 servers running PostgreSQL 6.5.1 with different databases. Is it possible to transfer one of the databases from one machine to another? I tried pg_dump streamdb > streamdb.pgdump to backup and cat streamdb.pgdump | psql streamdb to restore but got the message "Connection to databas

RE: [ADMIN] Elapsed time in vacuum?

1999-08-10 Thread Jackson, DeJuan
If the machines are identical distributions, libs, and layout you can copy over the entire pgsql tree for your data rollover. You won't have any time to test on your very loaded server before you know if something is wrong but you might just want to keep a copy around so that two mv's will restor

[ADMIN] solaris?

1999-08-10 Thread Colin Bodor
I am installing posgresql 6.5.1 on a Ultra 10 sparq 333mhz 256 mg's ram and Solaris 5.7 after compiling postgres I created a user "postgres" and added the proper paths in his .profile. when I do a initdb it errors on pglib, pgdata, username. if I tell initdb all of those it errors on not findi

RE: [ADMIN] Drastic reduction in speed

1999-08-10 Thread Greg Youngblood
My guess would be the startup scripts in this case. Possibly you are starting postgres without the -o -F options, which would cause it to be considerably slower... Gregory S. Youngblood ext 2164     -Original Message- From: Darren Greer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August

Re: [ADMIN] Elapsed time in vacuum?

1999-08-10 Thread Bradford L. Barrett
> getrusage() is used. xxx - sec in system mode, yyy - in user. > > BTW, upgrade to 6.5.X - vacuum is now (much) faster in some cases. Ahhh, ok, makes sense :) And we are looking into a way to upgrade from 6.4.2. Problem is that it is a production system that is very busy 24x7, as we have cus

Re: [ADMIN] Drastic reduction in speed

1999-08-10 Thread Darren Greer
NoI haven't vacuumed in a whilebut this change in speed happened almost overnight. Is that possible? Darren - Original Message - From: Lamar Owen <[EMAIL PROTECTED]> To: Darren Greer <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, August 10, 1999 12:21 PM Subject: Re:

Re: [ADMIN] Drastic reduction in speed

1999-08-10 Thread Lamar Owen
Darren Greer wrote: > > Hello all. On another maybe related note to my recovery issues, I am > noticing a drastic slow down with my database. A couple of days ago, when Have they been vacuumed recently? Lamar

[ADMIN] Drastic reduction in speed

1999-08-10 Thread Darren Greer
Hello all. On another maybe related note to my recovery issues, I am noticing a drastic slow down with my database. A couple of days ago, when deleting 20,000 rows of data, it would take roughly 5-10 seconds. Now it is taking about 2-5 minutes for 2,000. Is there anything I can check to see if

Re: [ADMIN] Urgent - Help Needed (Restoriing Data)

1999-08-10 Thread Darren Greer
Ok.thanks to the help of Oliver Elphick, I know have the correct version of Postres installed, and my old data is there and working fine (ie I can do a psql -c "select count(*) yada yada" dbname, with success). My problem now is that, when I try and go into psql, I get a Segmentation fault.

[ADMIN] Postgres and Multiple Processors

1999-08-10 Thread Hitesh Patel
I am running Postgres on a Linux 2.2.11 box with 2 Pentium III 550 processors. It appears that postgres is only using the first processor and not both. Is there a compile-time switch I need to enable to make postgres use both processors or is this not currently supported? Also... does anyone ha

Re: [ADMIN] Urgent - Help Needed (Restoriing Data)

1999-08-10 Thread Lamar Owen
Darren Greer wrote: > > Somehow, our version of postgres got upgraded during some system > maintenance. To make a long story short we had to completely re-install > Posgres (6.3-15). Now I have originaly data directory backed up, but have > found no way to import the data. I tried simply repla

[ADMIN] Urgent - Help Needed (Restoring Data) - Update

1999-08-10 Thread Darren Greer
OkI had mentioned that the PG_VERSION file in my original data directory says 6.4. Well, I installed postgres version 6.3 and then copied my original data directory over the new. This is what I get: gandalf:/# /etc/init.d/postgresql start The database is in an older format that cannot be re

Re: [ADMIN] Urgent - Help Needed (Restoriing Data)

1999-08-10 Thread Darren Greer
One of my other problems is that I dont know what version of postgres I was running. As far as I knew I was running 6.3, but upon looking at teh PG_VERSION file of my old data directory, I see that it says 6.4. So I dont know what version to install. Is there a way to tell from the data directo

Re: [ADMIN] Elapsed time in vacuum?

1999-08-10 Thread Vadim Mikheev
"Bradford L. Barrett" wrote: > > Greetings all.. > > Quick question, hopefully someone can answer for me... We have been > running PostgreSQL for over a year now, using php3 to interface our > web site to the db.. current main db size consists of roughly 3 million > line items (electronic com

[ADMIN] Urgent - Help Needed (Restoriing Data)

1999-08-10 Thread Darren Greer
Somehow, our version of postgres got upgraded during some system maintenance. To make a long story short we had to completely re-install Posgres (6.3-15). Now I have originaly data directory backed up, but have found no way to import the data. I tried simply replacing the new data directory wit

[ADMIN] Elapsed time in vacuum?

1999-08-10 Thread Bradford L. Barrett
Greetings all.. Quick question, hopefully someone can answer for me... We have been running PostgreSQL for over a year now, using php3 to interface our web site to the db.. current main db size consists of roughly 3 million line items (electronic components) split across 10 tables. When we d