Re: [GENERAL] question about error message

2003-11-21 Thread Joe Conway
Brian Hirt wrote: I got an error doing a vacuum analyze on one of our table: MSG: 7 (S1000): ERROR: simple_heap_update: tuple concurrently updated does anyone know what this means, and more importantly... should i be worried about this? Are you by chance running analyze concurrently? At http:

[GENERAL] question about error message

2003-11-21 Thread Brian Hirt
I got an error doing a vacuum analyze on one of our table: MSG: 7 (S1000): ERROR: simple_heap_update: tuple concurrently updated does anyone know what this means, and more importantly... should i be worried about this? i'm running 7.3.2 on redhat 7.3 dual 1.8 xeon with 1gb ram.

Re: [GENERAL] Problem with 7.4 RPMS for Fedora Core 1

2003-11-21 Thread Lamar Owen
On Friday 21 November 2003 09:33 pm, Lamar Owen wrote: > On Friday 21 November 2003 09:15 pm, milimeter wrote: > > errors: -> > > An old version of the database format was found.\nYou need to upgrade > > the data format before using PostgreSQL.\nSee > > /usr/share/doc/postgresql-7.4/README.rpm-

Re: [GENERAL] Problem with 7.4 RPMS for Fedora Core 1

2003-11-21 Thread Lamar Owen
On Friday 21 November 2003 09:33 pm, Lamar Owen wrote: > On Friday 21 November 2003 09:15 pm, milimeter wrote: > > errors: -> > > An old version of the database format was found.\nYou need to upgrade > > the data format before using PostgreSQL.\nSee > > /usr/share/doc/postgresql-7.4/README.rpm-

Re: [GENERAL] Problem with 7.4 RPMS for Fedora Core 1

2003-11-21 Thread Lamar Owen
On Friday 21 November 2003 09:15 pm, milimeter wrote: > errors: -> > An old version of the database format was found.\nYou need to upgrade > the data format before using PostgreSQL.\nSee > /usr/share/doc/postgresql-7.4/README.rpm-dist for more information. > <-- Argh. Typo. Replace /etc/

[GENERAL] Problem with 7.4 RPMS for Fedora Core 1

2003-11-21 Thread milimeter
Hello, everybody Thanks to Lamar Owen that I downloaded the rpms for Fedora Core 1 which I expected all the time after 7.4 was released. But I found a somewhat weird problem with it. My fedora installation has no postgresql at all, then I installed all rpms of 7.4, and then run "service postgresq

Re: [GENERAL] First generic/redhatish RPM's uploaded to ftp.postgresql.org.

2003-11-21 Thread Lamar Owen
On Friday 21 November 2003 01:13 pm, Lamar Owen wrote: > I have uploaded a first cut at the RPM's to ftp.postgresql.org. While I am > not 100% convinced of the need to do so, I have restructured the > directories, and await comment on that. > I expect RH 7.3, RH9, and RH 6.2 packages shortly fro

[GENERAL] First generic/redhatish RPM's uploaded to ftp.postgresql.org.

2003-11-21 Thread Lamar Owen
I have uploaded a first cut at the RPM's to ftp.postgresql.org. While I am not 100% convinced of the need to do so, I have restructured the directories, and await comment on that. Currently the upload is for Fedora Core 1 only. The source RPM should compile on most recent Red Hat's and close

Re: [GENERAL] PGSQL on shared hosting

2003-11-21 Thread Robert Treat
On Fri, 2003-11-21 at 11:20, Keith C. Perry wrote: > > > As previously mentioned you could just go with an ISP that has already been > running PostgreSQL for some time. I've notice quite a few service providers on > the list. Some are probably listed on techdocs but I noticed my entry hasn't >

Re: [GENERAL] Pg Dump error

2003-11-21 Thread Tom Lane
"Patrick Hatcher" <[EMAIL PROTECTED]> writes: > Trying to dump data from my database using: > pg_dump -a -Ft -b mdc_oz > mdc.tar > And I keep receiving the following error: > pg_dump: [tar archiver] could not write to tar member (wrote 3, attempted > 203) IIRC, the -Ft mode requires dumping into

Re: [GENERAL] Execute vacuum

2003-11-21 Thread Magnus Naeslund(t)
Carmen Gloria Sepulveda Dedes wrote: Hello! Can I execute VACUUM ANALYZE from ecpg? How I do that??? /* I do: EXEC SQL VACUUM ANALYZE ; But I get error: 'ERROR: VACUUM cannot run inside a transaction block' */ Turn on/off autocommit maybe? Or fake it with "EXEC SQL COMMIT; VACUUM ANALYZE" ?

Re: [GENERAL] linking postgre to AD

2003-11-21 Thread Mike Mascari
Jason Tesser wrote: > I saw that there is a PAM module for Postgre. Just out of curiosity, where did you get the notion that the shorthand for PostgreSQL is "Postgre" and not "Postgres" ? Marc, would it be possible to have a TIP that reads: "Postgres + SQL = PostgreSQL" In fact, could you use

Re: [GENERAL] ERROR: nodeRead: did not find '}' [x2]

2003-11-21 Thread Tom Lane
Andrei Ivanov <[EMAIL PROTECTED]> writes: > template1=> select pg_get_viewdef('pg_tables'::regclass); > ERROR: nodeRead: did not find '}' at end of plan node > template1=> select pg_get_viewdef('pg_indexes'::regclass); > ERROR: nodeRead: did not find '}' at end of plan node Bizarre. I just chec

[GENERAL] Pg Dump error

2003-11-21 Thread Patrick Hatcher
Trying to dump data from my database using: pg_dump -a -Ft -b mdc_oz > mdc.tar And I keep receiving the following error: pg_dump: [tar archiver] could not write to tar member (wrote 3, attempted 203) Any idea what this could be? I've dump other database on the same server without issue Patrick

Re: [GENERAL] Where is Postgesql ? - MYSQL SURPRISES WITH MAXDB / MySQL appliance for Linux arrives

2003-11-21 Thread Tom Lane
[EMAIL PROTECTED] writes: > I am not seeing the same news coverage being said about Postgresql. MySQL AB recently got ~ $20M in venture funding, and they are investing large chunks of it in marketing. We just have to weather the ad campaign. At the rate they're going they'll be through that money

Re: [GENERAL] Bug in pg_dumpall

2003-11-21 Thread Tom Lane
Denis Gasparin <[EMAIL PROTECTED]> writes: > CREATE USER aaa PASSWORD 'bbb' NOCREATEDB NOCREATEUSER; > CREATE SCHEMA AUTHORIZATION aaa; > All worked fine. > The problem is in the pg_dumpall file. > SET SESSION AUTHORIZATION aaa; > CREATE SCHEMA aaa; This is fixed in 7.4 --- I get CREATE SCHEMA a

Re: [GENERAL] PGSQL on shared hosting

2003-11-21 Thread Keith C. Perry
Quoting Robert Treat <[EMAIL PROTECTED]>: > On Fri, 2003-11-21 at 04:41, Holger Klawitter wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Am Friday 21 November 2003 09:49 schrieben Sie: > > > > i am a newbie to the pgsql world, so pls bear with a possibly stupid > > > > quest

Re: [GENERAL] Bug in pg_dumpall

2003-11-21 Thread Denis Gasparin
I'm restoring it as the superuser. You can try to execute the commands directly from psql. Denis Doug McNaught wrote: Denis Gasparin <[EMAIL PROTECTED]> writes: Looking into the generated sql, i find that the schema is created with the command: CREATE USER aaa PASSWORD 'bbb' NOCREATEDB NOCRE

Re: [GENERAL] Humor me: Postgresql vs. MySql (esp. licensing)

2003-11-21 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > The one problem with the signal approach is how long does the system > wait before giving up on the app shutdown? Seems that should be > something controllable by the admin, but without shutdown scripts, it > isn't. I believe 20 seconds is the standard

Re: [GENERAL] Postgresql vs. MySql - need feature matrix for

2003-11-21 Thread Robert Treat
If you'd like to head up this list, I'm sure people will answer any questions you might have. Getting the two communities to agree will be tricky, for example, you would have to break down the features into minute detail: support subselects in SELECT clause, supports subselects in FROM clause, supp

Re: [GENERAL] Humor me: Postgresql vs. MySql (esp. licensing)

2003-11-21 Thread Bruce Momjian
Tom Lane wrote: > Alex Satrapa <[EMAIL PROTECTED]> writes: > > On Mac OS X (desktop version, at least) there are no shutdown scripts. > > All running applications are simply sent the "TERM" signal, then later > > sent the "KILL" signal. Luckily enough, PostgreSQL seems to respond to > > TERM by

Re: [GENERAL] linking postgre to AD

2003-11-21 Thread Bruno Wolff III
On Fri, Nov 21, 2003 at 07:13:46 -0600, Jason Tesser <[EMAIL PROTECTED]> wrote: > > If I did that could I use a table in Postgre as a groups table so I can control > who can go where or who can see what in a web app? I was wondering if Postgre > had some built in functions that could help me

Re: [GENERAL] PGSQL on shared hosting

2003-11-21 Thread Tom Lane
Holger Klawitter <[EMAIL PROTECTED]> writes: >> No. The "make install" step requires a root access. > Wrong! If you install into a writeable directory e.g. > ./configure --prefix=/home/user/postgres > make install will work just fine (or at least it did with me). > The only problem is that you

Re: [GENERAL] Bug in pg_dumpall

2003-11-21 Thread Doug McNaught
Denis Gasparin <[EMAIL PROTECTED]> writes: > Looking into the generated sql, i find that the schema is created with > the command: > > CREATE USER aaa PASSWORD 'bbb' NOCREATEDB NOCREATEUSER; > > SET SESSION AUTHORIZATION aaa; > CREATE SCHEMA aaa; > > This fails giving me the following error: >

[GENERAL] Execute vacuum

2003-11-21 Thread Carmen Gloria Sepulveda Dedes
Hello! Can I execute VACUUM ANALYZE from ecpg? How I do that??? /* I do: EXEC SQL VACUUM ANALYZE ; But I get error: 'ERROR: VACUUM cannot run inside a transaction block' */ Thanks for your help. CG ---(end of broadcast)--- TIP 2: you can ge

Re: [GENERAL] tsearch2 column update produces "word too long"

2003-11-21 Thread Oleg Bartunov
On Fri, 21 Nov 2003, Markus Wollny wrote: > Hello! > > > Von: Oleg Bartunov [mailto:[EMAIL PROTECTED] > > Gesendet: Freitag, 21. November 2003 13:06 > > An: Markus Wollny > > Cc: [EMAIL PROTECTED] > > > > Word length is limited by 2K. What's exactly the word > > tsearch2 complained on ? > > 'Llanf

Re: [GENERAL] Concatenation in SELECT

2003-11-21 Thread Manfred Koizar
On Fri, 21 Nov 2003 20:22:17 +0900, Alex <[EMAIL PROTECTED]> wrote: >Hi, >is it possible to concatenate two rows (same or different data type) >into one. >like First Name, Last Name or ZIP City etc. If you meant to concatenate two *columns*, it goes like SELECT firstname || ' ' || las

[GENERAL] Bug in pg_dumpall

2003-11-21 Thread Denis Gasparin
I created a user with no superuser privileges: CREATE USER aaa PASSWORD 'bbb' NOCREATEDB NOCREATEUSER; Then i created an authorization schema: CREATE SCHEMA AUTHORIZATION aaa; All worked fine. The problem is in the pg_dumpall file. Looking into the generated sql, i find that the schema is cre

Re: [GENERAL] tsearch2 column update produces "word too long" error

2003-11-21 Thread Markus Wollny
Hello! > Von: Oleg Bartunov [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 21. November 2003 13:06 > An: Markus Wollny > Cc: [EMAIL PROTECTED] > > Word length is limited by 2K. What's exactly the word > tsearch2 complained on ? > 'Llanfairpwllgwyngyllgogerychwyrndrobwantysiliogogogoch' > i

Re: [GENERAL] linking postgre to AD

2003-11-21 Thread Jason Tesser
Hi, On Fri, Nov 21, 2003 at 06:27:01AM -0600, Jason Tesser wrote: > I am looking into using PostgreSQL on the backend here. I work for a Bible College. > We are putting together a > new software package. The database would be on a LInux box but our domain is M$ so > we use active > directo

Re: [GENERAL] linking postgre to AD

2003-11-21 Thread Alex Page
On Fri, Nov 21, 2003 at 06:27:01AM -0600, Jason Tesser wrote: > I am looking into using PostgreSQL on the backend here. I work for a Bible College. > We are putting together a > new software package. The database would be on a LInux box but our domain is M$ so > we use active > directory. I

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Alvaro Herrera
On Fri, Nov 21, 2003 at 03:39:42PM +0530, Durai wrote: > The script content is: > > # cat testpgsql.php > > $dbconn = pg_connect("host=172.16.1.158 port=5432 dbname=test user=postgres"); > $result = pg_exec ($dbconn, "update table2 set C2=C2+1;"); > $result = pg_exec ($dbcon

Re: [GENERAL] Modelling Oracle Sequences

2003-11-21 Thread Shridhar Daithankar
Julian North wrote: Hi, I am in the process of porting a number of large MSSQL databases to Postgres. The current id generation model in SQL server is an oracle style sequence generator i wrote using a pretty simple stored proc and table structure. I now need to do the same thnig in postgres. In

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Shridhar Daithankar
Durai wrote: Hello Sridhar, Now, It works. Thanks lot. But Still I have doubt: 1. How MySQL works in this case? It has any default "autocommit"? Depends. What version of mysql you are using? If you are using mysql 3.x and/or non-innodb tables, you don't have transactions in

[GENERAL] linking postgre to AD

2003-11-21 Thread Jason Tesser
I am looking into using PostgreSQL on the backend here. I work for a Bible College. We are putting together a new software package. The database would be on a LInux box but our domain is M$ so we use active directory. I saw that there is a PAM module for Postgre. My question is with applic

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Durai
Hello Sridhar, Now, It works. Thanks lot. But Still I have doubt: 1. How MySQL works in this case? It has any default "autocommit"? 2. Is there any other method to test for "concurrent testing"? Regs, Durai. - Original Message - From: "Shridhar Daithankar" <[EMAIL

Re: [GENERAL] tsearch2 column update produces "word too long" error

2003-11-21 Thread Oleg Bartunov
On Fri, 21 Nov 2003, Markus Wollny wrote: > Hello! > > I'm currently testing deployment of tsearch2 on our forum table. The > table is huge in itself - some 2GB of data without the indexes. I have > got PostgreSQL 7.4RC2 running on a test machine, installed tsearch2 to > my database, added the new

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Shridhar Daithankar
Damn.. I forgot to begin the transaction.. Shridhar Daithankar wrote: Durai wrote: Hello Shridhar, The script content is: ** *# cat te**stpgsql.php* * * $dbconn = pg_connect("host=172.16.1.158 port=5432 dbname=test user=postgres"); $result = pg_exec ($dbconn, "begin;"); $resu

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Durai
Hello Sridhar, No. Still Its not working. I used the following command. # bin/ab -c 5 -n 50 http://127.0.0.1:7070/testpgsql.php I got the following error: test=# ERROR: deadlock detected ERROR: deadlock detected WARNING: COMMIT: no transaction in progress WARNING: COMMIT: no transaction in

Re: [GENERAL] SELECT Question

2003-11-21 Thread Alex
All, thanks for the many suggestions Alex Manfred Koizar wrote: On Thu, 20 Nov 2003 16:52:37 +0900, Alex <[EMAIL PROTECTED]> wrote: Is there an easy way to write a select statement that returns me the frist free number or any within the range of 200? For example if 1-30, and 32-50 are occupied

[GENERAL] Concatenation in SELECT

2003-11-21 Thread Alex
Hi, is it possible to concatenate two rows (same or different data type) into one. like First Name, Last Name or ZIP City etc. Thanks Alex ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

[GENERAL] tsearch2 column update produces "word too long" error

2003-11-21 Thread Markus Wollny
Hello! I'm currently testing deployment of tsearch2 on our forum table. The table is huge in itself - some 2GB of data without the indexes. I have got PostgreSQL 7.4RC2 running on a test machine, installed tsearch2 to my database, added the new column to the table and tried to update it in the rec

Re: [GENERAL] PGSQL on shared hosting

2003-11-21 Thread Holger Klawitter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Friday 21 November 2003 09:49 schrieben Sie: > > i am a newbie to the pgsql world, so pls bear with a possibly stupid > > question. i want to test out pgsql but i only have a shared hosting > > account. is it possible to install pgsql without root a

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Shridhar Daithankar
Durai wrote: Hello Shridhar, The script content is: ** *# cat te**stpgsql.php* * * $dbconn = pg_connect("host=172.16.1.158 port=5432 dbname=test user=postgres"); $result = pg_exec ($dbconn, "update table2 set C2=C2+1;"); $result = pg_exec ($dbconn, "update table2 set C2=C2-

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Marek Lewczuk
Użytkownik Durai napisał: > Hello Shridhar, > > The script content is: > ** *# cat te**stpgsql.php* > * > * > $dbconn = pg_connect("host=172.16.1.158 port=5432 dbname=test user=postgres"); > $result = pg_exec ($dbconn, "update table2 set C2=C2+1;"); > $result = pg_exec ($dbcon

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Durai
Hello Shridhar,                       The script content is:   # cat testpgsql.php $dbconn = pg_connect("host=172.16.1.158 port=5432 dbname=test user=postgres");$result = pg_exec ($dbconn, "update table2 set C2=C2+1;");$result = pg_exec ($dbconn, "update table2 set C2=C2-1;");pg_close($dbc

Re: [GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Shridhar Daithankar
Durai wrote: Hi All, I tested "concurrent testing" in MySQL. It works fine. But I couldn't do in PostgreSQL 7.3.4 on HPUX IPF. I got deadlock problem. I used the PHP script to update table( one script increment the column & another one decrement the column). Is the postgres suppo

Re: [GENERAL] Modelling Oracle Sequences

2003-11-21 Thread Julian North
Hi Pavel, Thanks for that. I hadn't realised there was support for proper sequences. Usual asking before fully researching. Thanks, Julian. -Original Message- From: Pavel Stehule [mailto:[EMAIL PROTECTED] Sent: 21 November 2003 09:42 To: Julian North Cc: '[EMAIL PROTECTED]' Subject:

Re: [GENERAL] PGSQL on shared hosting

2003-11-21 Thread rob
Without wanting to get flamed for gratuitous advertising, my company offers shared hosting with PostgreSQL 7.4. I'll leave it at that. Just to make it fair I'll say ditto, then ;) No. The "make install" step requires a root access. That's not true, so long as your ./configure --prefix has been se

Re: [GENERAL] Modelling Oracle Sequences

2003-11-21 Thread Pavel Stehule
Hello why can't use normal sequence? There isn't difference betwen Oracle and PostgreSQL? http://www.postgresql.org/docs/7.3/static/sql-createsequence.html regards Pavel On Fri, 21 Nov 2003, Julian North wrote: > Hi, > > I am in the process of porting a number of large MSSQL databases to

Re: [GENERAL] ERROR: nodeRead: did not find '}' [x2]

2003-11-21 Thread Andrei Ivanov
On Thu, 20 Nov 2003, Tom Lane wrote: > Andrei Ivanov <[EMAIL PROTECTED]> writes: > > select * from pg_rewrite where ev_class = 'pg_user'::regclass gives > > [ lots of cruft ] > > Well, that's interesting, because I get exactly the same data from my > perfectly-functional 7.3.4 installation. >

[GENERAL] Concurrent testing PostgreSQL Vs MySQL

2003-11-21 Thread Durai
Hi All,               I tested "concurrent testing" in MySQL. It works fine. But I couldn't do in PostgreSQL 7.3.4 on HPUX IPF. I got deadlock problem.  I used the PHP script to update table( one script increment the column & another one decrement the column). Is the postgres support the co

[GENERAL] Modelling Oracle Sequences

2003-11-21 Thread Julian North
Hi, I am in the process of porting a number of large MSSQL databases to Postgres. The current id generation model in SQL server is an oracle style sequence generator i wrote using a pretty simple stored proc and table structure. I now need to do the same thnig in postgres. In MSSQL I was able t

Re: [GENERAL] PGSQL on shared hosting

2003-11-21 Thread Unihost Web Hosting
Hiya, Without wanting to get flamed for gratuitous advertising, my company offers shared hosting with PostgreSQL 7.4. I'll leave it at that. Apologies in advance to anyone I've offended. Regards Tony. Francois Suter wrote: i am a newbie to the pgsql world, so pls bear with a possibly stupid

[GENERAL] test

2003-11-21 Thread igor
---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [GENERAL] [HACKERS] with(isstrict) vs ISSTRICT

2003-11-21 Thread Tom Lane
strk <[EMAIL PROTECTED]> writes: > Does with(isStrict) still work ? regression=# create function foo(int) returns int as regression-# 'select $1' language sql with(isStrict); CREATE FUNCTION regression=# select version(); version -