[GENERAL] [Fwd: [LIH]OpenOffice.org 1.1 <-> PostgreSQL connectivity]

2003-11-02 Thread Shridhar Daithankar
Hi all, I hope this is useful for people using open office regularly. Can we get this posted on techdocs? Regards Shridhar Original Message -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Was fooling around a bit and managed to get OpenOffice.org 1.1 and PostgreSQL to talk

Re: [GENERAL] Constraint Problem

2003-11-02 Thread Ron St-Pierre
Tom Lane wrote: Ron St-Pierre <[EMAIL PROTECTED]> writes: I just want to constrain the ysnDefault field to only allow one TRUE value for any companyID/associationID pair, with no restrictions on the number of FALSES. You could do that with a partial unique index. There is an example at the bo

[GENERAL] Please help

2003-11-02 Thread CY
Hello list I hope someone can gave me a hint / advice on this. I wanted a auto-increasement function, similar to sequence, to increase a field. I cannot use CREATE SEQUENCE because it cd_line_no will start again with a new coursedetail. TQ in advance. TABLE = CREATE TABLE coursedetail ( cd_

Re: [GENERAL] slow query performance

2003-11-02 Thread Alvaro Herrera
On Sat, Nov 01, 2003 at 10:18:14AM +1300, Mark Kirkwood wrote: > > Dave Weaver wrote: > > >>- clustering the "obs" table on "station" > > > >Sorry, I don't understand what you mean by this - can you explain? > Supposing obs_pkey is on (station, valid_time): > > cluster obs_pkey on obs Be aware

Re: [GENERAL] Custom types and arrays

2003-11-02 Thread Joe Conway
mlunnon @ RWA wrote: Thanks for your reply tom. I'm sure it is not a mistype, I included the definition that I used in my script. Perhaps it is something to do with the cygwin installation of Postgres that I have i will try it on a Linux box. The type you were referring to is a composite type:

Re: [GENERAL] PostgreSQL License Question

2003-11-02 Thread Tom Lane
"Marc G. Fournier" <[EMAIL PROTECTED]> writes: > Nope, you are free to do with PostgreSQL (or any derived works) what you > will ... we are a BSD licensed ... "without fee" means that you can do > what you like with it *without* having to pay anyone for that right ... In particular, "without fee"

Re: [GENERAL] retrieve statement from catalogs

2003-11-02 Thread Jaime Casanova
What a solution!!! I need to insert the querys in a table _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ---(end of broadcast)-

Re: [GENERAL] AS operator and subselect result names: PostgreSQL

2003-11-02 Thread Stephan Szabo
On Fri, 31 Oct 2003, Neil Zanella wrote: > Hello, > > I would like to ask the about the following... > > PostgreSQL allows tables resulting from subselects to be renamed with > an optional AS keyword whereas Oracle 9 will report an error whenever > a table is renamed with the AS keyword. Furthermo

Re: [GENERAL] AS operator and subselect result names: PostgreSQL vs. Oracle

2003-11-02 Thread Tom Lane
[EMAIL PROTECTED] (Neil Zanella) writes: > PostgreSQL allows tables resulting from subselects to be renamed with > an optional AS keyword whereas Oracle 9 will report an error whenever > a table is renamed with the AS keyword. Furthermore, in PostgreSQL > when the result of a subselect is reference

Re: [GENERAL] AS operator and subselect result names: PostgreSQL

2003-11-02 Thread Peter Eisentraut
Neil Zanella writes: > 1. Does standard SQL allow an optional AS keyword for (re/)naming >tables including those resulting from subselects. Yes. > 2 Why must a subselect whose fields are referenced in an outer query > be explicitly named in PostgreSQL when it is not necessary in Oracle. B

Re: [GENERAL] PostgreSQL License Question

2003-11-02 Thread Marc G. Fournier
On Fri, 31 Oct 2003, Ryan Mack wrote: > First, I want to confirm my understanding that the "without fee" clause in > the PostgreSQL license means that a party may not sell PostgreSQL or works > derived from the PostgreSQL source code. Nope, you are free to do with PostgreSQL (or any derived wor

Re: 7.3.5 release (was: Re: [GENERAL] SELECT with row>32k hangs over

2003-11-02 Thread Lynn . Tilby
Quoting Bruce Momjian <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > > > > Perhaps I am not the appropriate one to mention this (and if you > already > > have a QA group,GREAT!!!) since I am not a > > Postgres developer but... Is there any QA group that looks at the > > design specs and does

[GENERAL] PostgreSQL License Question

2003-11-02 Thread Ryan Mack
First, I want to confirm my understanding that the "without fee" clause in the PostgreSQL license means that a party may not sell PostgreSQL or works derived from the PostgreSQL source code. Second, do loadable PostgreSQL modules constitute a derived work? Can a party develop new PostgreSQL types

Re: [GENERAL] Custom types and arrays

2003-11-02 Thread mlunnon @ RWA
Thanks for your reply tom. I'm sure it is not a mistype, I included the definition that I used in my script. Perhaps it is something to do with the cygwin installation of Postgres that I have i will try it on a Linux box. Cheers Matthew Tom Lane wrote: "mlunnon @ RWA" <[EMAIL PROTECTED]> w

[GENERAL] AS operator and subselect result names: PostgreSQL vs. Oracle

2003-11-02 Thread Neil Zanella
Hello, I would like to ask the about the following... PostgreSQL allows tables resulting from subselects to be renamed with an optional AS keyword whereas Oracle 9 will report an error whenever a table is renamed with the AS keyword. Furthermore, in PostgreSQL when the result of a subselect is re

[GENERAL] Constraint Problem

2003-11-02 Thread Ron St-Pierre
I want to create a constraint that's a little different, but don't know how to implement it. I have an intermediate table with a compound PK and a boolean 'ysnDefault' column: comanyID INTEGER REFERENCES companies, assocationID INTEGER REFERENCES associations, ysnDefault BOOLEAN I

Re: [GENERAL] Constraint Problem

2003-11-02 Thread Tom Lane
Ron St-Pierre <[EMAIL PROTECTED]> writes: > I just want to constrain the ysnDefault field to only allow one TRUE > value for any companyID/associationID pair, with no restrictions on the > number of FALSES. You could do that with a partial unique index. There is an example at the bottom of http

Re: [GENERAL] Perl and Postgres

2003-11-02 Thread Will Trillich
On Fri, Oct 17, 2003 at 03:10:03PM +, Edwin Quijada wrote: > Where can I find examples to accesing postgres with perl. if you have DBD::Pg and DBI, check out their respective manpages. that's the easy way to get into postgres from perl. as far as having perl available from inside postgres, c

Re: [GENERAL] Where are the database files located?

2003-11-02 Thread Simon Stiefel
Hi! Normally the PostgreSQL-database files are located in '/var/lib/postgresql/data'. HTH, Simon > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Victor SpÄng Arthursson > Sent: Wednesday, October 29, 2003 11:32 AM > To: pgsql-general > Subjec

[GENERAL] IF EXISTS?

2003-11-02 Thread Henrik W. Hansen
Hi all Can I make something linke: IF EXISTS(company_id_seq) DROP SEQUENCE company_id_seq; in a DDL where i creates all my tables? /Henrik ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster