Received: from mars.eurovox.fr (mars.eurovox.fr [195.68.105.194]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBL9f4693006 for ; Thu, 21 Dec 2000 04:41:04 -0500 (EST) (envelope-from jeanarthur@eurovox.fr) Received: from venus.eurovox.fr ([195.68.105.195]) by mars.eurovox.fr (8.8.7/8.8.7) with ESMTP id LAA32263 for ; Thu, 21 Dec 2000 11:35:54 +0100 Message-Id: <4.3.0.20001221103921.01f4e8d0@mail.eurovox.fr> X-Sender: jeanarthur@mail.eurovox.fr X-Mailer: QUALCOMM Windows Eudora Version 4.3 Date: Thu, 21 Dec 2000 10:40:31 +0100 To: pgsql-admin@postgresql.org From: Jean-Arthur Silve Subject: Re: Is that a bug? In-Reply-To: <20001221081457.71924.qmail@web10001.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200012/138 X-Sequence-Number: 334 Hello ! I use POSTGRES 6.4... Everuthing was working ok for months, but since 3 days, I have sometimes when my PHP scrits try to connect : Warning: Unable to connect to PostgresSQL server: connectDB(): getprotobyname failed in /opt/htdocs/html/php/atos_lib.phtml on line 3 Have you any idea ?? At 00:14 21/12/00 -0800, R D wrote: >Hi, >I have some problems with postgresql 7.0.3 running on >Slackware linux 7.1. > >I have a table with about 25 milion records: > >create table gsc_act(reg_id int2,id int2,ra int4, de >int4,mag int2); > >i created 2 indexes: > >create index gsc_act_de on gsc_act(de); >create index gsc_act_rd on gsc_act(de,ra); > >so every thing was ok with queries: >1. select * from gsc_act where de>=-300000 > and de<300000 and ra<=600000 and ra>=0; >2. select * from gsc_act where de>=-300000 > and de<300000 and ra<=600000 and ra>=0 > and mag<300; > >except the second one was too slow and I created third >index: > >create index gsc_act_rdm on gsc_act(de,ra,mag); > >I executed query 2 and it hang for 5-6 min with >permanent disk activity even Ctrl-C could not stop it. >I killed postmaster and droped the third index. Now >both queries hang the same way. Is there any way to >fix it? This are the most used queries with the >table(only the values are different). >Is this some bug in postgres? >Please help! > >Rumen > >__________________________________________________ >Do You Yahoo!? >Yahoo! Shopping - Thousands of Stores. Millions of Products. >http://shopping.yahoo.com/ ---------------------------------------------------------------- Le simple fait de passer par la fenetre ne suffit pas a la transformer en porte.