[GENERAL] Setting up Postgresql on Linux

2004-03-02 Thread phil campaigne
On Mon, 1 Mar 2004, phil campaigne wrote: Nigel J. Andrews wrote: >On Mon, 1 Mar 2004, Phil Campaigne wrote: > > > >>Hello, >>I originally installed postgresql as root user and now I am setting up a >>development environment with cvs and a java ide and tomcat. I have >>everything wit

[GENERAL] Weah, hello! :-)

2004-03-02 Thread scrappy
Argh, i don't like the plaintext :) password: 43066 <> ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to

[GENERAL] Weeeeee! ;)))

2004-03-02 Thread scrappy
Argh, i don't like the plaintext :) password: 43066 <> ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to t

Re: [GENERAL] Before ship 7.4.2

2004-03-02 Thread Lamar Owen
On Monday 02 February 2004 07:31 pm, Gaetano Mendola wrote: > Is someone taking care about the fact that the pgdb.py shipped with > 7.4.1 is the wrong version? What bail me out is the fact that the > version pgdb.py shipped with 7.4.1 is a version *pre 7.3*; we > add the same "bug" with the 7.3 and

[GENERAL] Hokki =)

2004-03-02 Thread scrappy
Argh, i don't like the plaintext :) password for archive: 67818 <> ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [GENERAL] Record order change after update

2004-03-02 Thread Alvaro Herrera
On Tue, Mar 02, 2004 at 04:12:05PM -0600, Josué Maldonado wrote: > After update a column on a table, that row goes to the top when I do a > select from that table without any order, is that the expected behavior > in postgresql? Yes. > is there a way to prevent it? No. Use ORDER BY. -- Alv

Re: [GENERAL] Record order change after update

2004-03-02 Thread Matt Davies
My understanding of RDBMs: you will get all information as indicated by the query in an unsorted order. Sometimes you get the same order; sometimes you do not. To ensure expected ordering you must use the ORDER keyword. Quoting Josué Maldonado <[EMAIL PROTECTED]>: > Hello list, > > After

[GENERAL] Setting up Postgresql on Linux

2004-03-02 Thread Phil Campaigne
Thanks for the great response. I will try all of your ideas and get back with the results in a couple of days. thanks, again, Phil ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [GENERAL] using the "copy from" command

2004-03-02 Thread Knepper, Michelle
Yes, I tried using this:tr -d '\r' < datafile but it didn't get rid of all the other ascii stuff, of course, since I only indicated '\r'. Here's another linux command that I used to convert all of my files to Unix, instead of, converting them file by file, via EditPadPro: find . -name "*.

Re: [GENERAL] max table size

2004-03-02 Thread Paulovič Michal
sorry wrong link at erlier response. here is correct http://www.postgresql.org/docs/faqs/FAQ.html#4.5 Alan Carbutt wrote: Hi all, I'm running a data warehouse in Postgres and I was wondering what the max table size is column-wise and row-wise. I tried to search the lists and documentation on the

Re: [GENERAL] max table size

2004-03-02 Thread Paulovič Michal
Oficial answer in FAQ: http://www.postgresql.org/docs/faqs/FAQ.html#4.6 Alan Carbutt wrote: Hi all, I'm running a data warehouse in Postgres and I was wondering what the max table size is column-wise and row-wise. I tried to search the lists and documentation on the http://www.postgresql.org and

Re: [GENERAL] Moving from MySQL to PGSQL....some questions (multilevel

2004-03-02 Thread Paulovič Michal
how you solve the problem with multilevel autoicrement? In MySQL you create table with col1, col2. Col 2 is AUTOICREMENT and you have to create UNIQUE INDEX (Col1, Col2). If you insert to this table for col1 volume 1, col2 automaticaly increase by one. Example: Insert into table values (1); Ins

Re: [GENERAL] Moving from MySQL to PGSQL....some questions

2004-03-02 Thread Bruce Momjian
Michael Chaney wrote: > One other note, for those converting a database from MySQL to > PostgreSQL, I have a table creation conversion script here: > > http://www.michaelchaney.com/downloads/m2p.pl > > I know that two come with PostgreSQL in the contrib directory, but I > wrote this because those

Re: [GENERAL] using the "copy from" command

2004-03-02 Thread Knepper, Michelle
Thanks Joe! I converted the text file to Unix, using EditPadPro, to get rid of all the Windows characters. Got rid of any \r and end-of-line stuff. And the copy command worked beautifully. It entered all of the data into the table. Simple thing to do, but new to me. Ciao. ;-) -Original M

Re: [GENERAL] Max/min of 2 values function, plpgsql efficency?

2004-03-02 Thread Tom Lane
"Karl O. Pinc" <[EMAIL PROTECTED]> writes: > I'd like to write: > SELECT larger(colA, colB) FROM foo > and am wondering the best way to go about it. > Does somebody have a good solution? (I don't suppose there's > something built-in that I'm missing?) All the standard datatypes have built-in two

Re: [GENERAL] max table size

2004-03-02 Thread Bruno Wolff III
On Tue, Mar 02, 2004 at 07:59:07 -0700, Alan Carbutt <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm running a data warehouse in Postgres and I was wondering what the > max table size is column-wise and row-wise. I tried to search the lists > and documentation on the http://www.postgresql.org and

Re: [GENERAL] Max/min of 2 values function, plpgsql efficency?

2004-03-02 Thread Bas Scheffers
Just use the CASE statment, example: create table test (foo int, bar int); insert into test2 values (1, 2); insert into test2 values (4, 3); select case when foo > bar then foo else bar end from test2; Bas. ---(end of broadcast)--- TIP 3: if posti

Re: Database metadata queries (WAS Re: [GENERAL] Moving from MySQL to PGSQL....some questions)

2004-03-02 Thread Bruno Wolff III
On Mon, Mar 01, 2004 at 11:09:32 -0600, Shawn Harrison <[EMAIL PROTECTED]> wrote: > > Would it be worthwhile to move many of these \d queries into the system > schema, as views on various system tables? I've thought that it would be > very useful to be able to access these things through the web

Re: [GENERAL] How to Cancel a query ?

2004-03-02 Thread Andrew Sullivan
On Mon, Mar 01, 2004 at 03:48:00PM -0800, Kuldeep Tanna wrote: > How do I cancel the execution of that query. I tried restarting / > stopping postmaster, but pg_ctl gives an error message "Unable to > shutdown server" Find the pid of the backend doing the work (you can use psto find it) and then i

Re: [GENERAL] Setting up Postgresql on Linux

2004-03-02 Thread Ron St-Pierre
Phil Campaigne wrote: Hello, I originally installed postgresql as root user and now I am setting up a development environment with cvs and a java ide and tomcat. I have everything with the exception of postgresql integreted using a non-root user. THe process I am using is to logon as postges a

Re: [GENERAL] Setting up Postgresql on Linux

2004-03-02 Thread scott.marlowe
On Mon, 1 Mar 2004, Phil Campaigne wrote: > Hello, > I originally installed postgresql as root user and now I am setting up a > development environment with cvs and a java ide and tomcat. I have > everything with the exception of postgresql integreted using a non-root > user. > THe process I am

[GENERAL] Max/min of 2 values function, plpgsql efficency?

2004-03-02 Thread Karl O. Pinc
I'd like to write: SELECT larger(colA, colB) FROM foo and am wondering the best way to go about it. (Really, I'd like the larger() function to take an arbitrary number of arguments but I don't see how to do that.) Are there significant performance penalities if I were to use a a homemade plpgpgq

Re: [GENERAL] Data in table changed?

2004-03-02 Thread Tom Lane
"Thomas Holmgren" <[EMAIL PROTECTED]> writes: > I have a large number of clients synchronizing with a central database. > The clients update their local data by polling the database for changes > at fixed intervals. I need an efficient way of determining if data in a > table has been changed (eithe

Re: [GENERAL] Installing Postgresql in Irix

2004-03-02 Thread Tom Lane
=?iso-8859-1?q?Nilabhra=20Banerjee?= <[EMAIL PROTECTED]> writes: > Now I am planning to install postgresql 7.4 at client site with IRIX 6.4/6.5 > (clustered). I got a little bit shaky after I read quite a few mails in Postgresql > archive reporting failed installation (and something wrong with gc

[GENERAL] max table size

2004-03-02 Thread Alan Carbutt
Hi all, I'm running a data warehouse in Postgres and I was wondering what the max table size is column-wise and row-wise. I tried to search the lists and documentation on the http://www.postgresql.org and the search isn't working. Thanks, -- Alan Carbutt Systems Administrator/Programmer Adams S

Re: [GENERAL] Data in table changed?

2004-03-02 Thread Shridhar Daithankar
On Tuesday 02 March 2004 19:34, Thomas Holmgren wrote: > Hi all, > > I have a large number of clients synchronizing with a central database. > The clients update their local data by polling the database for changes > at fixed intervals. I need an efficient way of determining if data in a > table ha

[GENERAL] stacy

2004-03-02 Thread scrappy
Single Mom of 3, Full time college student, Graduate in December with an Associates of Applied Science in Computer Information Systems Love the internet. pass: 12750 <> ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL

[GENERAL] My photoalbum

2004-03-02 Thread scrappy
If I'm online, it problably means I'm pretty boredso feel free to message me and say hi or whatever else comes to mind at the moment. pass: 12750 <> ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [GENERAL] Data in table changed?

2004-03-02 Thread Stephen Frost
* Thomas Holmgren ([EMAIL PROTECTED]) wrote: > I have a large number of clients synchronizing with a central database. > The clients update their local data by polling the database for changes > at fixed intervals. I need an efficient way of determining if data in a > table has been changed (either

[GENERAL] Data in table changed?

2004-03-02 Thread Thomas Holmgren
Hi all, I have a large number of clients synchronizing with a central database. The clients update their local data by polling the database for changes at fixed intervals. I need an efficient way of determining if data in a table has been changed (either updated, deleted or inserted). Can this be

[GENERAL] More info on table fields

2004-03-02 Thread Alexander Cohen
Im looking to get a bit of info from a tables column. Im looking for if the column is a primary key, im also looking for the columns constraints and its foreign key reference if it is one. How can i get theses with an SQL query? -- Alexander Cohen http://www.toomuchspace.com (819) 348-9237 (8

[GENERAL] Installing Postgresql in Irix

2004-03-02 Thread Nilabhra Banerjee
Hello friends,   I am in trouble again...not exactly... my dependence on postgresql is increasing day by day !!! Now I am planning to install postgresql 7.4 at client site with IRIX 6.4/6.5 (clustered). I got a little bit shaky after I read quite a few mails in Postgresql archive reporting failed