Re: [GENERAL] What is the point of create or replace view command

2006-06-04 Thread Chris Velevitch
On 6/5/06, Joe Conway wrote: Chris Velevitch wrote: > But what about my original question? > > "What is the point of the create or replace view command if you > can't change the > column and data types?" -- create table t1 create table t1(f int); -- create view v1 based on table t1 creat

Re: [GENERAL] 8.1.4: Installation ends up in endless recheck loops

2006-06-04 Thread Frank Finner
On Sun, 04 Jun 2006 15:14:37 -0400 Tom Lane <[EMAIL PROTECTED]> thought long, then sat down and wrote: > Frank Finner <[EMAIL PROTECTED]> writes: > > I run "./configure --with-perl --with-pam --with-openssl" > > then "gmake" > > and end up in endless loops of "cd . && ./config.status --recheck"

Re: [GENERAL] What is the point of create or replace view command

2006-06-04 Thread Joe Conway
Chris Velevitch wrote: But what about my original question? "What is the point of the create or replace view command if you can't change the column and data types?" -- create table t1 create table t1(f int); -- create view v1 based on table t1 create view v1 as select * from t1; -- cre

Re: [GENERAL] What is the point of create or replace view command

2006-06-04 Thread Chris Velevitch
On 6/5/06, brian ally wrote: Chris Velevitch wrote: > Yes, please, what is point of CREATE OR REPLACE FUNCTION, when it > doesn't let you change the function's parameter list or result type? The way that user-created functions work allows one to have the same function name with different numbers

Re: [GENERAL] What is the point of create or replace view command

2006-06-04 Thread Tim Allen
Chris Velevitch wrote: Yes, please, what is point of CREATE OR REPLACE FUNCTION, when it doesn't let you change the function's parameter list or result type? Being able to change the _logic_ of a function is certainly useful. Well, I find it so, at least - YMMV. Tim -- -

Re: [GENERAL] What is the point of create or replace view command

2006-06-04 Thread brian ally
Chris Velevitch wrote: On 6/5/06, Tom Lane wrote: "Chris Velevitch" <[EMAIL PROTECTED]> writes: > What is the point of the create or replace view command if you can't > change the column and data types ? You might as well ask what's the point of CREATE OR REPLACE FUNCTION, when it doesn't let

Re: [GENERAL] What is the point of create or replace view command

2006-06-04 Thread Chris Velevitch
On 6/5/06, Tom Lane wrote: "Chris Velevitch" <[EMAIL PROTECTED]> writes: > What is the point of the create or replace view command if you can't > change the column and data types ? You might as well ask what's the point of CREATE OR REPLACE FUNCTION, when it doesn't let you change the function's

Re: [GENERAL] What is the point of create or replace view command

2006-06-04 Thread Chris Velevitch
On 6/5/06, Berend Tober wrote: Chris Velevitch wrote: > What is the point of the create or replace view command if you can't > change the column and data types ? You could have a calculated column and change the calcuation. You could change the sort order, selection, or grouping clauses. That

Re: [GENERAL] PGSQL 7.4 -> 8.1 migration & performance problem

2006-06-04 Thread Lincoln Yeoh
You are getting 190+ secs on the new hardware and 235 secs on the old? Is the CPU usage maxed out? Assuming linux run top and then press 1. If in both cases the CPU's are maxed out, then that explains why they are about the same speed = both are 3GHz Intel CPUs, and your DB fits in RAM. I've

Re: [GENERAL] What is the point of create or replace view command

2006-06-04 Thread Tom Lane
"Chris Velevitch" <[EMAIL PROTECTED]> writes: > What is the point of the create or replace view command if you can't > change the column and data types ? You might as well ask what's the point of CREATE OR REPLACE FUNCTION, when it doesn't let you change the function's parameter list or result typ

Re: [GENERAL] What is the point of create or replace view command

2006-06-04 Thread Berend Tober
Chris Velevitch wrote: What is the point of the create or replace view command if you can't change the column and data types ? You could have a calculated column and change the calcuation. You could change the sort order, selection, or grouping clauses. Just to name two. ---

[GENERAL] What is the point of create or replace view command

2006-06-04 Thread Chris Velevitch
What is the point of the create or replace view command if you can't change the column and data types ? Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ---(end of broadcast)--- TIP 1: if posting/readin

Re: [GENERAL] create view problem

2006-06-04 Thread Chris Velevitch
On 6/3/06, Chris Velevitch wrote: On 6/2/06, Tom Lane wrote: > "Chris Velevitch" writes: > > I'm using pg 7.4.5 (cygwin) on win xp sp1. > > When I enter:- > > create view v1 as select * from t1; > > I get:- > > ERROR: syntax error at or near "view" at character 16 > > Repeatably? > > "vi

Re: [GENERAL] How to do a "CREATE DATABASE" and then connect to it?

2006-06-04 Thread Martijn van Oosterhout
On Sun, Jun 04, 2006 at 02:24:32PM -0700, Joseph Brenner wrote: > I think there are two different "connects" we're talking about here, > one is the connection to the postgresql, the other is the "connection" > to the "database" (i.e. the "dbname", which probably should've been > called the "cata

Re: [GENERAL] How to do a "CREATE DATABASE" and then connect to it?

2006-06-04 Thread Joseph Brenner
Terry Lee Tucker <[EMAIL PROTECTED]> wrote: > Joseph Brenner <[EMAIL PROTECTED]> wrote: > > > Joseph Brenner wrote: > > > > > > After you do a "CREATE DATABASE", how do you programatically > > > > connect to what you just created? > > It's not a terribly major point, I'm just wondering if it's

Re: [GENERAL] does this mean i have a corruption?

2006-06-04 Thread Adam Witney
Tom Lane wrote: > Adam Witney <[EMAIL PROTECTED]> writes: >> bugasbase2=# SELECT bioassay_id, count(*) from mba_data_base where >> bioassay_id = 5153 group by bioassay_id; >> bioassay_id | count >> -+--- >> 5153 | 2 >> 9712 | 120 > > That's pretty interesti

Re: [GENERAL] does this mean i have a corruption?

2006-06-04 Thread Tom Lane
Adam Witney <[EMAIL PROTECTED]> writes: > bugasbase2=# SELECT bioassay_id, count(*) from mba_data_base where > bioassay_id = 5153 group by bioassay_id; > bioassay_id | count > -+--- > 5153 | 2 > 9712 | 120 That's pretty interesting :-(. What PG version is th

Re: [GENERAL] 8.1.4: Installation ends up in endless recheck loops

2006-06-04 Thread Tom Lane
Frank Finner <[EMAIL PROTECTED]> writes: > I run "./configure --with-perl --with-pam --with-openssl" > then "gmake" > and end up in endless loops of "cd . && ./config.status --recheck" > so "configure" runs again and again and again... Check your system clock ... it's probably set to a time befo

Re: [GENERAL] Case for postgreSQL

2006-06-04 Thread Robert Treat
On Sunday 04 June 2006 12:55, P.M wrote: > Hi, > > I would like to know if it exists a good case tool for creating DB into > PostgreSQL ? thanks a lot, > There are several listed at http://www.postgresql.org/docs/techdocs.54 -- Robert Treat Build A Brighter Lamp :: Linux Apache {middleware} Post

[GENERAL] Case for postgreSQL

2006-06-04 Thread P.M
Hi,I would like to know if it exists a good case tool for creating DB into PostgreSQL ?thanks a lot,Maileen __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

[GENERAL] does this mean i have a corruption?

2006-06-04 Thread Adam Witney
I have a table to which i bulk load datasets of about up to 20,000 rows at a time. It has a primary key, plus a dataset id (bioassay_id), however i just ran this query: bugasbase2=# SELECT bioassay_id, count(*) from mba_data_base where bioassay_id = 5153 group by bioassay_id; bioassay_id | coun

[GENERAL] 8.1.4: Installation ends up in endless recheck loops

2006-06-04 Thread Frank Finner
Hi! I found a strange problem during installation on NetBSD with PostgreSQL 8.1.4: I run "./configure --with-perl --with-pam --with-openssl" then "gmake" and end up in endless loops of "cd . && ./config.status --recheck" so "configure" runs again and again and again... System: NetBSD 3.0 on Co