Re: [GENERAL] Ident authentication failed for user

2012-03-01 Thread Ruben Blanco
Hi John. Thanks a lot for your reply: El día 1 de marzo de 2012 17:25, John R Pierce escribió: > On 03/01/12 9:02 AM, Ruben Blanco wrote: > specify host=localhost, otherwise its using the first 'local' line, which > specifies 'ident' authentication, as the error imp

[GENERAL] Ident authentication failed for user

2012-03-01 Thread Ruben Blanco
Hi: I cannot connect to my Postgres database from my PHP scripts. I get the error: PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: Ident authentication failed for user "postgres" in ... I have tried many combinations for "host" TYPE in "pg_hba.conf" (restarting po

[GENERAL] Partial index does not make query faster

2012-01-18 Thread Ruben Blanco
ate)) Filter: (outgoing_call <> 'I'::bpchar) Total runtime: 656.103 ms Size of the index used: SELECT pg_size_pretty(pg_total_relation_size('calls_201109_index_2')); pg_size_pretty 330 MB

[GENERAL] Worse performance on partitioned table than in non partitioned table

2011-07-20 Thread Ruben Blanco
Hi: After partitioning a big table, I am getting slower performance on queries run on the non-partitioned table (llamadas) than the partitioned table (llamadas_maestra). Not partitioned table: heos_prod=# explain analyze select * from llamadas where cod_empresa=1 and fecha_llamada='2011062

[GENERAL] Create unique index or constraint on part of a column

2011-03-07 Thread Ruben Blanco
Hi: Is there anyway to create a unique index or constraint on part of a column? Something like this, but something that works ;-) ALTER TABLE invoices ADD CONSTRAINT cons UNIQUE (EXTRACT(YEAR FROM invoice_date), innvoice_number); Thanks for any help. Ruben,

Re: [GENERAL] Heavy queries not run by user application

2011-02-14 Thread Ruben Blanco
Thanks a lot, guys. There were two users running Navicat, and these killer queries are indeed run by this program. Rubén. 2011/2/13 John R Pierce > On 02/12/11 5:11 PM, Ruben Blanco wrote: > >> Hi: >> >> I'm running a Postgres database with a total disk occupation

[GENERAL] Heavy queries not run by user application

2011-02-12 Thread Ruben Blanco
ncel_backend" to recover database functionality. So, what are these queries indeed? Is it advisable to cancel them? Is there any way to prevent these situation to happen? I use PostgreSQL 8.4.4 on x86_64-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46), 64-bit. Thanks in advance for any help. Ruben.

Re: [GENERAL] postgresql cluster on SAN

2010-09-08 Thread Lazaro Ruben Garcia Martinez
storage while the primary server is running. For these resons is posible to use a SAN? Regards. - "Craig Ringer" escribió: > On 9/09/2010 10:27 AM, Lazaro Ruben Garcia Martinez wrote: > > Hello everyone: > > > > I am a student of the University of Informati

[GENERAL] postgresql cluster on SAN

2010-09-08 Thread Lazaro Ruben Garcia Martinez
Hello everyone: I am a student of the University of Informatics Science in Cuba. I want create a postgresql cluster and I have two servers but I have a doubt. Is possible to create a cluster of postgresql server by sharing the database file on a SAN? Regards. Thank you very much for your tim

[GENERAL] database cluster!!!

2010-08-17 Thread Lazaro Ruben Garcia Martinez
Hello: I have two servers and I want create a database cluster in a SAN (storage area network), can any send my any link or any web site in that I can read and study about it. Thank you very much for your time.

Re: [GENERAL] Duda sobre campo null!!!

2010-08-16 Thread Lazaro Ruben Garcia Martinez
Hello everyone, I have a doubt: A null value in a field could affect the performance of the database?? Regards. Thank you very much for your time. - "Digimer" escribió: > On 10-08-16 09:51 PM, Lazaro Ruben Garcia Martinez wrote: > > Hola a todos, desde hace mucho t

[GENERAL] Duda sobre campo null!!!

2010-08-16 Thread Lazaro Ruben Garcia Martinez
Hola a todos, desde hace mucho tiempo tengo una una duda relacionada con los campos nullos, quería saber si tanto el empleo como la presencia de los mismos ya sea en tablas pequeñas o grandes, pude afectar de alguna forma el rendimiento del sistema, ademas quisiera saber que inconvenientes puede

[GENERAL] How to free disk space

2008-10-21 Thread Ruben Blanco
Hi: My database is growing fast taking too much disk space. How can I free disk space without performing a VACCUM FULL? It locks the database for several hours, and that is not a solution. I guess a backup-restore would do the work but, isn't there a better way to do this without shutting down po

[GENERAL] Ranking?

2008-08-22 Thread Ruben Gouveia
Since there is no current solution to ranking values in pl/pgsql as the rank() over (partition by... that there is in oracle i am hoping someone can help me out here. The table i created contains the following columns: rank | value I wrote a cursor that will give me all the values.

[GENERAL] oracle rank() over partition by queries

2008-08-21 Thread Ruben Gouveia
Does postgreSQL have an equivalent of the Oracle's "rank() over by partition"? Here's what i have so far but it doesn't work: select id, sum(case when key = 5 then 1 else 0 end), sum(case when key = 6 then 1 when key = 7 then 1 else 0 end), sum(case when l.status = 6 then cos

[GENERAL] Full Text Search. In 8.3.1 How ?

2008-04-30 Thread Ruben Guinez
Hello List. I need to make finding precise words or phrases in Word documents (I put this document as plain text to a field text type of a table in my database). I'm working with PostgreSQL 8.3.1 on Linux; before, working with tsearch2-in version 8.2.x-could find presence or absence of a word in t

Re: [GENERAL] SQL command to dump the contents of table failed: PQendcopy()

2005-09-28 Thread ruben
Thanks Martijn: Martijn van Oosterhout wrote: On Wed, Sep 28, 2005 at 11:40:11AM +0200, ruben wrote: Hi Tom: No way to get the core dump, this is what I did: 1) Add "ulimit" to /etc/rc.d/init.d/postgresql just before pg_ctl start in the "start" section of the scri

Re: [GENERAL] SQL command to dump the contents of table failed: PQendcopy()

2005-09-28 Thread ruben
that produces the crash. 4) Search core file: -bash-2.05b$ find /usr/local/pgsql/ -name '*core*' -print -bash-2.05b$ Nothing comes up. Thanks for your help. Ruben. Tom Lane wrote: ruben <[EMAIL PROTECTED]> writes: As I recall, released versions of Post

Re: [GENERAL] SQL command to dump the contents of table failed: PQendcopy()

2005-09-26 Thread ruben
Thanks Tom and Michael: Michael Fuhr wrote: On Fri, Sep 23, 2005 at 05:11:19PM +0200, ruben wrote: The operating system is Red Hat Linux release 8.0 (Psyche) and PostgreSQL version is 7.4.6., without non-standard extensions. I cannot find any core dump in the PGDATA directory /usr/local

[GENERAL] could not send data to server: Operation not supported

2005-09-26 Thread ruben
Hi: A PHP script that is running every 30 minutes for three years has crashed when updating a Postgres database table with this error message: "pg_exec() query failed: could not send data to server: Operation not supported" I just ran it again and it worked fine. I could not find a single

Re: [GENERAL] SQL command to dump the contents of table failed: PQendcopy()

2005-09-23 Thread ruben
Hi Michael: The operating system is Red Hat Linux release 8.0 (Psyche) and PostgreSQL version is 7.4.6., without non-standard extensions. I cannot find any core dump in the PGDATA directory /usr/local/pgsql (I don't know how to debug it to get a stack trace, I'll find out). Tha

[GENERAL] SQL command to dump the contents of table failed: PQendcopy() failed. Error message from server: socket not open

2005-09-23 Thread ruben
system is ready This happens every day consistently. The table is quite big, about 1 million tuples and it is vacuumed. Any help would be appreciated. Cheers, Ruben. ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ?

Re: [GENERAL] UPDATE Inserts New Rows

2005-05-11 Thread Ruben Oliveira
an simple select would make it clear that the aplication that uses the DB was already doing the INSERT, shame on me :( Thanks for everything :) Ruben Oliveira Richard Huxton wrote: Ruben Oliveira wrote: I'm having an unexpected behavior from an UPDATE query : I expected only updates to exist

[GENERAL] UPDATE Inserts New Rows

2005-05-11 Thread Ruben Oliveira
6,3) | not null default 0.000 field7 | text | not null default ''::text Indexes: "table084_pkey" PRIMARY KEY, btree (field1, field2) Am I missing something ? I can give you more details if needed. Thanks for any help ... Ruben Oliveira ---(e

Re: [GENERAL] problem with dots in order by

2005-02-15 Thread Ruben Oliveira
some other machine the initdb --locale=C just to be safe ... Thanks again , Ruben Oliveira - Tom Lane wrote: Ruben Oliveira <[EMAIL PROTECTED]> writes: Can anybody tell me if there is something I can do in the Linux config to have the same order by result ?? Sort order is determine

[GENERAL] problem with dots in order by

2005-02-15 Thread Ruben Oliveira
Hello everybody ! I have this order by : select lalala from tablex order by field_y; where field_y is a text column. that returns something like : 2.1004.11 21.00.461 2.1006.21 in PostgreSQL 7.3.2 in Linux Mandrake 9.1 but in PostgreSQL 8.0.0 in Windows XP it works as I expected ... 2.1004.11 2.10

[GENERAL] could not read block 84253 of relation "tablename": Input/output error

2004-12-18 Thread ruben
Hi: No way to access "tablename". Can I do something to recover? Is this a hardware error? PostgreSQL 7.4.5 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7) Thanks in advance. Ruben. ---(end of

[GENERAL] pg_restore does not restore

2004-10-25 Thread ruben
Hi: I'm trying to dump tableA and restore it to tableB: $ ./pg_dump -Fc -t tableA databaseA -f tableA.dump -v $ ./pg_restore -t tableB -d databaseA tableA.dump -v pg_dump creates tableA.dump aparently well, but after running pg_restore without errors I cannot find any "tableB", what am I doing wro

Re: Fw: Re: [GENERAL] Recovering data from corrupted table. Urgent

2004-10-18 Thread Ruben Blanco
Thanks Martijn: It worked. I was having issues with 7.4.2, run memory ans disk checks and hardware seems ok, that's why I decided to upgrade to 7.4.5, but unfortunately I'm still experiencing data corruption. Ruben. ruben20 wrote: -- Forwarded Message --- From: M

Re: [GENERAL] Recovering data from corrupted table. Urgent Help!!

2004-10-13 Thread ruben
Hi Gaetano: This procedure to recover data from a corrupted table should be documented somewhere... If it is, I could not find it! Now I wonder if I have lost any data, because after creating the pg_clog/0004 and running VACCUM everything seems ok. Thanks a lot for your help. Ruben. Gaetano

[GENERAL] current transaction is aborted, commands ignored until end of transaction block

2004-10-04 Thread ruben
Hi: After upgrading 7.4.2 to 7.4.5 quite smoothly in a Red Hat 8.0 box, we are having intermitent issues with certain online PHP transactions, returning this error: "Warning: pg_exec() query failed: ERROR: current transaction is aborted, commands ignored until end of transaction block" Half th

Re: [GENERAL] Slow after VACUUM, fast after DROP-CREATE INDEX

2004-08-06 Thread ruben
Thanks Harald, i'm running PostgreSQL 7.1.3. Harald Fuchs wrote: In article <[EMAIL PROTECTED]>, ruben <[EMAIL PROTECTED]> writes: Today, one of the processes running daily took 4 hours when it takes about 5 minutes. After a VACCUM ANALYZE of the affected tables it took the sam

[GENERAL] open of /usr/lib/pgsql/data/pg_clog/0F3E failed

2004-07-27 Thread ruben
Hi: I'm running a large database on PostgreSQL 7.1.3. 20 days ago the database failed with a threatening and not too descriptive error like: pg_exec() query failed: server closed the connection unexpectedlyThis probably means the server terminated abnormally before or while processing the

Re: [GENERAL] server closed the connection unexpectedly

2004-07-06 Thread ruben
table "afected_table" failed: PQendcopy() failed. pg_dump: Error message from server: FATAL 1: The database system is starting up Ruben. mike g wrote: Can you use pg_dump to backup the database and possibly then upgrade the db? 7.2 is rather old. I recall reading similar postings in the ma

[GENERAL] server closed the connection unexpectedly

2004-07-05 Thread ruben
7)" Any help on how to recover the table would be greatly appreciated. Thanks, Ruben. ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

[GENERAL] Join faster than single table query

2003-08-14 Thread ruben
0030808' ; NOTICE: QUERY PLAN: Nested Loop (cost=0.00..317.07 rows=3 width=351) -> Seq Scan on table_b (cost=0.00..308.80 rows=1 width=124) -> Index Scan using table_a_i01 on table_a (cost=0.00..8.24 rows=2 width=227) EXPLAIN Index on table_a is defined

Re: [GENERAL] Join faster than single table query

2003-08-14 Thread ruben
Hi Martijn: Thanks for your answer, I really missed something ;-) Kind regards, Ruben. Martijn van Oosterhout wrote: On Mon, Aug 11, 2003 at 01:48:21PM +0200, ruben wrote: Hi: I must have missed something, but how is it possible that a join on tables A and B is faster (a lot faster) than