Re: [GENERAL] phpPgAdmin-4.1.3 login fail

2008-01-11 Thread Richard Huxton
Cefull Lo wrote: I just installed phpPgAdmin-4.1.3, when I try to login, it always tell me login fail. Probably the phpPgAdmin list would be the best place to ask, but let's see. I followed the steps in FAQ but still can't login. OK I'm sure that postgresql is running and accepting tcpip

Re: [GENERAL] 8.2.4 serious slowdown

2008-01-11 Thread Pavel Stehule
Hello On 11/01/2008, Sim Zacks [EMAIL PROTECTED] wrote: I changed it to where f.commited is not true and the query now takes 1 second as opposed to 60. (much faster then the 3 seconds it took on 8.0.1, which could also be because of the coalesce there) Is it considered better practice (or

[GENERAL] How to safely compare transaction id?

2008-01-11 Thread alphax
Hi, I want to compare the record's transaction id in sql statements or PL/pgSQL stored procedure. Are there any system function or operator can safely(transaction id wraparound safed) compare the transaction id? Thanks! ---(end of broadcast)---

Re: [GENERAL] ATTN: Clodaldo was Performance problem. Could it be related to 8.3-beta4?

2008-01-11 Thread Clodoaldo
2008/1/10, Clodoaldo [EMAIL PROTECTED]: 2008/1/10, Tom Lane [EMAIL PROTECTED]: It would be interesting to see the identical test on Clodaldo's installations. This is 8.2.6 in the new server: cpn= create table foo (f1 int, f2 int, f3 int, f4 real); CREATE TABLE cpn= create index fooi on

Re: [GENERAL] alter varchar() column length?

2008-01-11 Thread Thomas Kellerer
Gauthier, Dave, 11.01.2008 15:55: Is there a way to alter a varchar column’s length? Maybe something like “alter table foo alter column xyz varchar(256)”. A quick look into the manual would have revealed the correct syntax: http://www.postgresql.org/docs/8.2/static/sql-altertable.html

Re: [GENERAL] How to safely compare transaction id?

2008-01-11 Thread Marko Kreen
On 1/11/08, alphax [EMAIL PROTECTED] wrote: I want to compare the record's transaction id in sql statements or PL/pgSQL stored procedure. Are there any system function or operator can safely(transaction id wraparound safed) compare the transaction id? In 8.3 there are txid functions that

Re: [GENERAL] ATTN: Clodaldo was Performance problem. Could it be related to 8.3-beta4?

2008-01-11 Thread Clodoaldo
2008/1/11, Clodoaldo [EMAIL PROTECTED]: 2008/1/10, Clodoaldo [EMAIL PROTECTED]: 2008/1/10, Tom Lane [EMAIL PROTECTED]: It would be interesting to see the identical test on Clodaldo's installations. This is 8.2.6 in the new server: cpn= create table foo (f1 int, f2 int, f3 int, f4

Re: [GENERAL] alter varchar() column length?

2008-01-11 Thread Pavel Stehule
Hello CREATE TABLE foog(a varchar(10)); ALTER TABLE foog ALTER COLUMN a TYPE varchar(30); postgres=# \d foog Table public.foog Column | Type | Modifiers +---+--- a | character varying(30) | regards Pavel Stehule On

[GENERAL] alter varchar() column length?

2008-01-11 Thread Gauthier, Dave
Is there a way to alter a varchar column's length? Maybe something like alter table foo alter column xyz varchar(256). My alternative seems very messy... - alter table, add a new column with the desired varchar length. call it temp - insert into temp the value of the old

Re: [GENERAL] Search connections created per day

2008-01-11 Thread Joshua D. Drake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 11 Jan 2008 14:29:32 -0300 João Paulo Zavanela [EMAIL PROTECTED] wrote: Hi there, I want to know how many connections is created simultaneously in data base per day. Entirely depends on your machine. I wouldn't suggest having more than

[GENERAL] Search connections created per day

2008-01-11 Thread João Paulo Zavanela
Hi there, I want to know how many connections is created simultaneously in data base per day. Are there some table where i can search it? All users is connected in the database with postgres user. Thanks. João Paulo Zavanela ---(end of

Re: [GENERAL] Online Oracle to Postgresql data migration

2008-01-11 Thread Josh Harrison
On Jan 11, 2008 1:22 PM, Erik Jones [EMAIL PROTECTED] wrote: On Jan 11, 2008, at 12:14 PM, Scott Marlowe wrote: On Jan 11, 2008 12:02 PM, Josh Harrison [EMAIL PROTECTED] wrote: Hi We have an Oracle production database with some terbytes of data. We wanted to migrate that to

Re: [GENERAL] Online Oracle to Postgresql data migration

2008-01-11 Thread Erik Jones
On Jan 11, 2008, at 12:14 PM, Scott Marlowe wrote: On Jan 11, 2008 12:02 PM, Josh Harrison [EMAIL PROTECTED] wrote: Hi We have an Oracle production database with some terbytes of data. We wanted to migrate that to Postgresql (rigt now...a test database and not production) database. What

Re: [GENERAL] Online Oracle to Postgresql data migration

2008-01-11 Thread Tom Hart
Josh Harrison wrote: Hi We have an Oracle production database with some terbytes of data. We wanted to migrate that to Postgresql (rigt now...a test database and not production) database. What are the good options to do that? Please advise me on where to look for more information on this

Re: [GENERAL] oddly slow query

2008-01-11 Thread Pavel Stehule
On 11/01/2008, Jessi Berkelhammer [EMAIL PROTECTED] wrote: Hello. I'm trying to figure out why a query I'm doing is incredibly slow (~10 minutes.) The incredibly slow query is something like: SELECT count(*) from registration LEFT JOIN person USING (person_id) WHERE

Re: [GENERAL] oddly slow query

2008-01-11 Thread Tom Lane
Jessi Berkelhammer [EMAIL PROTECTED] writes: The hold-up seems to be in a 'Nested Loop Left Join', which is only in the plan for the slow query. Here are the first two lines of EXPLAIN ANALYZE on the slow query: So you've left out all the information that would let anyone guess what the

[GENERAL] Analytic SQL Server - next generation analytic Data Warehouse with OLAP support

2008-01-11 Thread Blazej Oleszkiewicz
I am pleased to announce first commercial use of Analytic SQL Server (ASQL) based on PostgreSQL. Analytic SQL Server is implementation of the next generation Data Warehouse Model (for now available only for PostgreSQL server), with full OLAP functionality and analytical processing support

[GENERAL] oddly slow query

2008-01-11 Thread Jessi Berkelhammer
Hello. I'm trying to figure out why a query I'm doing is incredibly slow (~10 minutes.) The incredibly slow query is something like: SELECT count(*) from registration LEFT JOIN person USING (person_id) WHERE x_program(registration.x_type_code) = 'blah'; The person view is quite big (~69000

Re: [GENERAL] Search connections created per day

2008-01-11 Thread Erik Jones
On Jan 11, 2008, at 11:51 AM, Joshua D. Drake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 11 Jan 2008 14:29:32 -0300 João Paulo Zavanela [EMAIL PROTECTED] wrote: Hi there, I want to know how many connections is created simultaneously in data base per day. Entirely

Re: [GENERAL] Online Oracle to Postgresql data migration

2008-01-11 Thread Scott Marlowe
On Jan 11, 2008 12:02 PM, Josh Harrison [EMAIL PROTECTED] wrote: Hi We have an Oracle production database with some terbytes of data. We wanted to migrate that to Postgresql (rigt now...a test database and not production) database. What are the good options to do that? Please advise me on

Re: [GENERAL] Search connections created per day

2008-01-11 Thread Scott Marlowe
On Jan 11, 2008 11:29 AM, João Paulo Zavanela [EMAIL PROTECTED] wrote: Hi there, I want to know how many connections is created simultaneously in data base per day. Do you want to know the max simo connections at any given time, or the total connections in a given day? Assuming you want to

[GENERAL] Online Oracle to Postgresql data migration

2008-01-11 Thread Josh Harrison
Hi We have an Oracle production database with some terbytes of data. We wanted to migrate that to Postgresql (rigt now...a test database and not production) database. What are the good options to do that? Please advise me on where to look for more information on this topic thanks josh

Re: [GENERAL] many to one of many modeling question

2008-01-11 Thread David Fetter
On Mon, Jan 07, 2008 at 12:30:50PM -0500, Kevin Hunter wrote: Hi List, I have multiple objects to which I'd like to associate comments. I'd like this to be a many to one relationship, so that each object can have many different comments. The issue is how to have one comment table. One

Re: [GENERAL] oddly slow query

2008-01-11 Thread Jessi Berkelhammer
Hello. Thanks for the replies. Pavel Stehule wrote: what do you do in x_program function? Are you sure so it is fast? I do not think the function is the problem, as running the slow query without it is just as slow, and similar queries using that function are quick. Tom Lane wrote:

Re: [GENERAL] many to one of many modeling question

2008-01-11 Thread Richard Broersma Jr
--- On Fri, 1/11/08, David Fetter [EMAIL PROTECTED] wrote: One method that has been proposed is to have a third table which stores to what object type a comment belongs, but I don't like this because the foreign key relationships then wouldn't be maintained by the database. The only

[GENERAL] ECPG problem with 8.3

2008-01-11 Thread Peter Wilson
I've just tried compiling our project against the 8.3RC1 code. This is the first time I've tried any release of 8.3. Several components use ECPG. I'm now getting an ECPG error. Compiling on 8.2.3 is fine. I've checked the 8.3 release documentation and there don't seem to be any that change

Re: [GENERAL] oddly slow query

2008-01-11 Thread Tom Lane
Jessi Berkelhammer [EMAIL PROTECTED] writes: Here are the 3 EXPLAIN ANALYZE commands followed by the output: Well, here's the problem: Join Filter: (clinical_reg_current.client_id = client.client_id) - Subquery Scan clinical_reg_current (cost=754.36..758.23 rows=1

Re: [GENERAL] How to safely compare transaction id?

2008-01-11 Thread alphax
Marko Kreen wrote: On 1/11/08, alphax [EMAIL PROTECTED] wrote: I want to compare the record's transaction id in sql statements or PL/pgSQL stored procedure. Are there any system function or operator can safely(transaction id wraparound safed) compare the transaction id? In 8.3 there are txid