Re: [GENERAL] Questions about Views, Rules and DBLink

2005-08-01 Thread Joao Afonso
Thanks for your help. But still, do you think there could be a way to alter the dblink_current_query() function so that it could return the right query? Or should I try to build the query in a function and send it through dblink instead of dblink_current_query()? I've also been told that oracle

[GENERAL] Strange delete behaviour

2005-08-01 Thread Renzo Kottmann
Hello, I have a strange delete behaviour in my postgres 8.0.3 database: If I try a delete from t_node where node_doc_id = XX; from inside a plpgsql function on this table: CREATE TABLE t_node ( node_global_id int4 DEFAULT nextval('seq_node') NOT NULL , node_doc_id

Re: [GENERAL] Strange delete behaviour

2005-08-01 Thread Gnanavel S
post the description of the t_node and t_document tables for more informationOn 8/1/05, Renzo Kottmann <[EMAIL PROTECTED] > wrote:Hello,I have a strange delete behaviour in my postgres 8.0.3 database: If I try adelete from   t_node where  node_doc_id = XX;from inside a plpgsql functionon th

[GENERAL] Alter privileges for all tables

2005-08-01 Thread Sean Davis
Sorry to ask this again, but I seem to have misplaced the original discussion and can't find it in the archives--could someone point me to the thread on functions to batch alter privileges on all tables (or a subset) in a database? Thanks, Sean ---(end of broadcast)--

Re: [GENERAL] Strange delete behaviour

2005-08-01 Thread Renzo Kottmann
Gnanavel S wrote: > post the description of the t_node and t_document tables for more > information > > On 8/1/05, Renzo Kottmann <[EMAIL PROTECTED]> wrote: > >>Hello, >> >>I have a strange delete behaviour in my postgres 8.0.3 database: >> >>If I try a >> >>delete >>from t_node >>where node_doc

Re: [GENERAL] Strange delete behaviour

2005-08-01 Thread Gnanavel S
Post the result of \d t_node t_documentOn 8/1/05, Renzo Kottmann <[EMAIL PROTECTED]> wrote: Gnanavel S wrote:> post the description of the t_node and t_document tables for more> information>> On 8/1/05, Renzo Kottmann <[EMAIL PROTECTED]> wrote:> >>Hello,I have a strange delete behaviour in my

Re: [GENERAL] Strange delete behaviour

2005-08-01 Thread Michael Fuhr
On Mon, Aug 01, 2005 at 01:57:32PM +0200, Renzo Kottmann wrote: > If I try a > > delete > from t_node > where node_doc_id = XX; > > from inside a plpgsql function > ... > The deletion does not finish after several minutes and the CPU is > running at 100% all the time unless I stop po

Re: [GENERAL] Strange delete behaviour

2005-08-01 Thread Renzo Kottmann
> On Mon, Aug 01, 2005 at 01:57:32PM +0200, Renzo Kottmann wrote: >> If I try a >> >> delete >> from t_node >> where node_doc_id = XX; >> >> from inside a plpgsql function >> ... >> The deletion does not finish after several minutes and the CPU is >> running at 100% all the time unless

Re: [GENERAL] Alter privileges for all tables

2005-08-01 Thread John DeSoi
Hi Sean, On Aug 1, 2005, at 8:40 AM, Sean Davis wrote: Sorry to ask this again, but I seem to have misplaced the original discussion and can't find it in the archives--could someone point me to the thread on functions to batch alter privileges on all tables (or a subset) in a database? Y

Re: [GENERAL] Strange delete behaviour

2005-08-01 Thread Tom Lane
"Renzo Kottmann" <[EMAIL PROTECTED]> writes: > "t_annotation_ann_startnode_id_fkey" FOREIGN KEY (ann_startnode_id) > REFERENCES t_node(node_global_id) MATCH FULL > "t_annotation_ann_endnode_id_fkey" FOREIGN KEY (ann_endnode_id) > REFERENCES t_node(node_global_id) MATCH FULL You need indexe

Re: [GENERAL] Strange delete behaviour

2005-08-01 Thread Michael Fuhr
On Mon, Aug 01, 2005 at 04:02:14PM +0200, Renzo Kottmann wrote: > > Do other tables have foreign key references to t_node? If so, are > > there indexes on those tables' foreign key columns? How many records > > are in t_node and any tables that reference it? Do you keep the > > tables vacuumed a

Schema Pivileges was Re: [GENERAL] Alter privileges for all tables

2005-08-01 Thread Peter Fein
Sean Davis wrote: > Sorry to ask this again, but I seem to have misplaced the original > discussion and can't find it in the archives--could someone point me to the > thread on functions to batch alter privileges on all tables (or a subset) in > a database? On a somewhat related note, is revoking

Re: [GENERAL] Unable to Update a Record

2005-08-01 Thread Wang, Mary Y
Sorry, that I didn't explain my problem very clearly. Anyway, here is the deal: I'm the admin for the database, so, I've all the privileges of updating, deletion, and reviewing and et. When I tried to select based on the bemsid condition, TWO ROWS returned: select * from users where bemsid=949

[GENERAL] PostgreSQL vs. MySQL

2005-08-01 Thread Vratislav_Morkus
Hi all, I am sorry for a stupid easy question, but I'am PostgreSQL novice. Our development team has encountered problem with trying to install and maintain cluster (pgcluster) on our production database. So they have decided to switch the entire solution to MySql database. a) have you got any goo

Re: [GENERAL] Unable to Update a Record

2005-08-01 Thread Richard Huxton
Wang, Mary Y wrote: Sorry, that I didn't explain my problem very clearly. Anyway, here is the deal: I'm the admin for the database, so, I've all the privileges of updating, deletion, and reviewing and et. When I tried to select based on the bemsid condition, TWO ROWS returned: select * from

Re: [GENERAL] [pgsql-advocacy] New MySQL to PostgreSQL Migration Guide

2005-08-01 Thread Jim C. Nasby
So should we ask to take over the sql2pg project on pgfoundry and move the existing scripts over there, as well as the migration guide? On Sun, Jul 31, 2005 at 10:51:06PM -0700, Chris Travers wrote: > Hi; > > I have just posted a MySQL to PostgreSQL migration guide at > http://www.metatrontech.c

Re: [GENERAL] PostgreSQL vs. MySQL

2005-08-01 Thread Jim C. Nasby
On Mon, Aug 01, 2005 at 06:44:50PM +0200, [EMAIL PROTECTED] wrote: > Hi all, > I am sorry for a stupid easy question, but I'am PostgreSQL novice. > Our development team has encountered problem with trying to install and > maintain cluster (pgcluster) on our production database. So they have > dec

Re: [GENERAL] Disconnect sessions and session timeouts

2005-08-01 Thread Ian Harding
Can the client application be modified?  It seems like it might need to be, since if it is expecting its connection to be open whenever it's running, the server killing the connection might lead it to crash.  - IanOn 8/1/05, Len Walter <[EMAIL PROTECTED]> wrote: Hi,I'm looking to solve a problem

Re: [GENERAL] PostgreSQL vs. MySQL

2005-08-01 Thread Scott Marlowe
On Mon, 2005-08-01 at 11:44, [EMAIL PROTECTED] wrote: > Hi all, > I am sorry for a stupid easy question, but I'am PostgreSQL novice. > Our development team has encountered problem with trying to install and > maintain cluster (pgcluster) on our production database. So they have > decided to switc

Re: [GENERAL] PostgreSQL vs. MySQL

2005-08-01 Thread Tino Wildenhain
Am Montag, den 01.08.2005, 18:44 +0200 schrieb [EMAIL PROTECTED]: > Hi all, > I am sorry for a stupid easy question, but I'am PostgreSQL novice. > Our development team has encountered problem with trying to install and > maintain cluster (pgcluster) on our production database. So they have > deci

Re: [GENERAL] Unable to Update a Record

2005-08-01 Thread Wang, Mary Y
Richard, Thank you so MUCH. I was able to delete the record by using the OID method that you mentioned in (2). Thanks again. Mary Wang -Original Message- From: Richard Huxton [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 9:44 AM To: Wang, Mary Y Cc: Joshua D. Drake; pgsql-g

[GENERAL] Problem with dropping a tablespace

2005-08-01 Thread Oliver Siegmar
Hello, I'm unable to drop a recently created tablespace (the partition on which the tablespace relies on, run out of space - postgresql seems to have a problem, now): template1=# drop tablespace disk1; ERROR: tablespace "disk1" is not empty Huh? Okay...lets dig into... template1=# select

Re: [GENERAL] Problem with dropping a tablespace

2005-08-01 Thread Michael Fuhr
On Mon, Aug 01, 2005 at 09:28:07PM +0200, Oliver Siegmar wrote: > > template1=# select * from pg_tablespace_databases(594611987); > pg_tablespace_databases > - > 595675173 > (1 row) > > Aha...so there seems to be a database associated to this tablespace - lets > see >

[GENERAL] pgmonitor

2005-08-01 Thread Martín Marqués
What happend with pgmonitor? -- select 'mmarques' || '@' || 'unl.edu.ar' AS email; - Martín Marqués | Programador, DBA Centro de Telemática| Administrador Universidad Nacional del Litoral

[GENERAL] Check postgres compile-time options

2005-08-01 Thread Laura Vance
Hello, I have an old binary RPM distribution of Postgres (7.1.2), and I am trying to switch from the proprietary interface to the ODBC interface so that I can upgrade my servers to a more up-to-date version. In trying to get the ODBC installed on my test system, I've run into the problem tha

Re: [GENERAL] pgmonitor

2005-08-01 Thread YL
i want to list non-system tables with psql and get the following error. any alternatives? Thanks. EPost-# \dt ERROR: invalid byte sequence for encoding "UNICODE": 0xed my database used UNICODE as the encoding. and the OS is win2k pro wich simplified chinese as default language. --

Re: [GENERAL] Check postgres compile-time options

2005-08-01 Thread Michael Fuhr
On Mon, Aug 01, 2005 at 05:18:58PM -0500, Laura Vance wrote: > In trying to get the ODBC installed on my test system, I've run > into the problem that I need to know if my binary distribution of > PostgreSQL was configured with the --enable-odbc option, and I can't > seem to find out how to do that

Re: [GENERAL] Check postgres compile-time options

2005-08-01 Thread Laura Vance
Michael Fuhr wrote: On Mon, Aug 01, 2005 at 05:18:58PM -0500, Laura Vance wrote: In trying to get the ODBC installed on my test system, I've run into the problem that I need to know if my binary distribution of PostgreSQL was configured with the --enable-odbc option, and I can't seem to find

Re: [GENERAL] Check postgres compile-time options

2005-08-01 Thread Martín Marqués
El Lun 01 Ago 2005 20:13, Laura Vance escribió: > > I've tried other configuration test programs, but none of them seem to > connect properly. > > Is there some incompatibility with this version of iodbc and postgresql > 7.1.2? Sorry, I happen to recall that you wanted this to upgrade the PG s

Re: [GENERAL] PostgreSQL vs. MySQL

2005-08-01 Thread Robert Treat
On Monday 01 August 2005 13:52, Scott Marlowe wrote: > On Mon, 2005-08-01 at 11:44, [EMAIL PROTECTED] wrote: > > Hi all, > > I am sorry for a stupid easy question, but I'am PostgreSQL novice. > > Our development team has encountered problem with trying to install and > > maintain cluster (pgcluster

Re: [GENERAL] Check postgres compile-time options

2005-08-01 Thread Laura Vance
Martín Marqués wrote: El Lun 01 Ago 2005 20:13, Laura Vance escribió: I've tried other configuration test programs, but none of them seem to connect properly. Is there some incompatibility with this version of iodbc and postgresql 7.1.2? Sorry, I happen to recall that you wanted th

Re: [GENERAL] Check postgres compile-time options

2005-08-01 Thread Tom Lane
Laura Vance <[EMAIL PROTECTED]> writes: > Now I have to upgrade to Fedora Core 4, which uses a much higher version > of PostgreSQL. Unfortunately the Pg.pm support is gone (it's wrapped by > DBI/DBD, which wasn't that hard to convert my apps, and they work except > for some inconsistent errors

[GENERAL] feeding big script to psql

2005-08-01 Thread Havasvölgyi Ottó
Hi, A generated a big SQL script (about 20 Mb), and fed it to psql. I was very surprised that within a minute psql became quite slow. There were areas, where less than 10 row were inserted in a second. This is on a WinXP machine with local server 8.0.3, and only I use it. Looking at the log fi

[GENERAL] could not bind IPv6 socket

2005-08-01 Thread hisatomo
Hi, Does anyone have any experience to see the messaege below? %pg_ctl start postmaster starting LOG: could not bind IPv6 socket: HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry. We don't use IPv6. Also, DB seems to be alright. I hope it doesn't h

[GENERAL] SELECT count(*) Generating Lots of Write Activity

2005-08-01 Thread Logan Bowers
Hello,   I’m potentially having a strange performance problem.  I have a BIG table: ~100M, ~1KB rows.  I do a SELECT count(*) from it (I know it will be slow) and as I watch procinfo on my DB server I see a huge amount of write activity.  Thus,   1)   Why does this statement gener

Re: [GENERAL] feeding big script to psql

2005-08-01 Thread Tom Lane
=?ISO-8859-1?Q?Havasv=F6lgyi_Ott=F3?= <[EMAIL PROTECTED]> writes: > I know it would be faster with COPY, but this is extremly slow, and the > bottleneck is psql. > What is the problem? Hmm, does the Windows port have readline support, and if so does adding the "-n" switch to the psql invocation f

Re: [GENERAL] could not bind IPv6 socket

2005-08-01 Thread Tom Lane
[EMAIL PROTECTED] writes: > Hi, Does anyone have any experience to see the messaege below? > %pg_ctl start > postmaster starting > LOG: could not bind IPv6 socket: > HINT: Is another postmaster already running on port 5432? If not, wait a few > seconds and retry. Hmm, it's pretty odd that there

Re: [GENERAL] SELECT count(*) Generating Lots of Write Activity

2005-08-01 Thread Tom Lane
"Logan Bowers" <[EMAIL PROTECTED]> writes: > I'm potentially having a strange performance problem. I have a BIG > table: ~100M, ~1KB rows. I do a SELECT count(*) from it (I know it will > be slow) and as I watch procinfo on my DB server I see a huge amount of > write activity. Thus, > 1)

[GENERAL] tsearch2 and colons or urls

2005-08-01 Thread Matthew Terenzio
I'm trying to do a full text search for URL's stored in a table. SELECT *,headline(description,q), rank(vectors,q) FROM bb_item, to_tsquery('http://www.yahoo.com') AS q WHERE vectors @@ q ORDER BY rank(vectors,q) DESC LIMIT 10 OFFSET 0 I get a general syntax error. I know it;s the colon in th

Re: [GENERAL] SELECT count(*) Generating Lots of Write Activity

2005-08-01 Thread Douglas McNaught
"Logan Bowers" <[EMAIL PROTECTED]> writes: > I'm potentially having a strange performance problem. I have a BIG table: > ~100M, ~1KB rows. I do a SELECT count(*) from it (I know it will be slow) > and as I watch procinfo on my DB server I see a huge amount of write > activity. Thus, The only t

Re: [GENERAL] Check postgres compile-time options

2005-08-01 Thread Alvaro Herrera
On Mon, Aug 01, 2005 at 08:32:17PM -0400, Tom Lane wrote: > Laura Vance <[EMAIL PROTECTED]> writes: > > Now I have to upgrade to Fedora Core 4, which uses a much higher version > > of PostgreSQL. Unfortunately the Pg.pm support is gone (it's wrapped by > > DBI/DBD, which wasn't that hard to conv

Re: [GENERAL] PostgreSQL vs. MySQL

2005-08-01 Thread Gregory Youngblood
On Aug 1, 2005, at 4:33 PM, Robert Treat wrote: On Monday 01 August 2005 13:52, Scott Marlowe wrote: On Mon, 2005-08-01 at 11:44, [EMAIL PROTECTED] wrote: Hi all, I am sorry for a stupid easy question, but I'am PostgreSQL novice. Our development team has encountered problem with trying to

[GENERAL] Inheritance vs. LIKE - need advice

2005-08-01 Thread William Bug
Dear pgsql-general moderators, I sent this post out over the weekend. Is there a reason why it is not getting posted to the list? Many thanks for your assistance. I really need some advice on this issue from people with experience using both inheritance mechanisms in PostgreSQL. Cheers,

Re: [GENERAL] Problem with dropping a tablespace

2005-08-01 Thread Oliver Siegmar
On Monday 01 August 2005 22:15, Michael Fuhr wrote: > On Mon, Aug 01, 2005 at 09:28:07PM +0200, Oliver Siegmar wrote: > > template1=# select * from pg_tablespace_databases(594611987); > > pg_tablespace_databases > > - > > 595675173 > > (1 row) > > > > Aha...so there seems

Re: [GENERAL] Unable to Update a Record

2005-08-01 Thread Richard Huxton
Wang, Mary Y wrote: Richard, Thank you so MUCH. I was able to delete the record by using the OID method that you mentioned in (2). Well, if the column I mentioned in (1) is integer/bigint, then you'll want to do (3) as well and reindex. -- Richard Huxton Archonet Ltd --

[GENERAL] Insert ImageFile in PostgreSQL

2005-08-01 Thread johan giant
Please help me!!! Howto insert images file from Visual basic 6 into postgreSQL database server   For information : my database server : Fedora Core 2 my client : Win XP Pro SP #2 with visual basic 6.   thanks be4.   Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile pho