[GENERAL] ALTER TABLE - add several columns

2004-08-25 Thread Fuchs Clemens
Title: ALTER TABLE - add several columns Hi, I just want to add several columns to an existing table. Do I have to call a statements like below for each new column, or is there a possibility to do it at once? - existing table:       test - columns to add:   col1 (FK),

[Fwd: Re: [GENERAL] IP clash in the PC]

2004-08-25 Thread Deepa K
Original Message Subject: Re: [GENERAL] IP clash in the PC From:"Deepa K" <[EMAIL PROTECTED]> Date:Thu, August 26, 2004 10:56 am To: "Jan Wieck" <[EMAIL PROTECTED]> -

Re: [GENERAL] Substring RegExp Extract path

2004-08-25 Thread Joe Conway
Nick wrote: "/help/support/index/time.jsp" and i want to extract the 1st, 2nd and 3rd parts 1st = help, 2nd = support, 3rd = index Are you using 7.4? If so: select split_part('/help/support/index/time.jsp','/',2), split_part('/help/support/index/time.jsp','/',3), split_part('/help/sup

Re: [GENERAL] IP clash in the PC

2004-08-25 Thread Deepa K
> Hi, > Yes, in other PC, PG is running. But, PG load is not getting load. And > also I think it is possible to reach the other PC from this PC as Eth0 > is not up (because of clash). > > 1. Load running PC - Eth0 is not up > 2. Other PC- Eth0 is up > >> The only thing *I* can think of i

[GENERAL] Querying large record sets

2004-08-25 Thread Jon Asher
Hi,   Our new Postgres database includes a table with about 1 mil records.  So far, I've been impressed with the performance of queries against 1 mil rows.  Unfortunately I just found out that the size of the table will increase to 3 mil records.   Can I expect Postgres to return results on

[GENERAL] update table from internet site

2004-08-25 Thread Ennio-Sr
Hi! I'm thinking about creating a table listing my shares (say 'Shares') and then update its price column from a .txt file (say 'Prices') downloaded from an internet site periodically. Recalling past readings my first idea would be to use something like: => update table Shares set price = (select p

Re: [GENERAL] The Slony General List

2004-08-25 Thread Marc G. Fournier
don't know much about mailman, but I've just restarted the daemons ... let me know if that 'unsticks' things ... On Wed, 25 Aug 2004, DeJuan Jackson wrote: It appears that the Slony list isn't accepting traffic/posts at all. I posted a message yesterday (2004-08-24) and haven't even received it

[GENERAL] Timestamp with Timezone

2004-08-25 Thread Chris M. Gamble
I recently upgraded an application from postgresql 7.4.2 to 7.4.5, and now I am having timezone nightmares. I checked on the old server, and found that in the postgresql.conf, the timezone was set for unknown. The timezone portion of the records was being set to GMT+06 ( for reference, I am in

[GENERAL] pgTcl and Refcursors

2004-08-25 Thread Philip A. Chapman
Everyone, I am about to begin a project which will use Java (JDBC) and postgresql. In most Java projects, I do not embed SQL code, but create functions which have the SQL logic. I call the functions from within my Java code. For selects, the functions return refcursors, which the Java code c

Re: [GENERAL] Unsupported 3rd-party solutions (Was: Few questions

2004-08-25 Thread Jan Wieck
On 8/25/2004 11:39 AM, Marc G. Fournier wrote: On Wed, 25 Aug 2004, Thomas Hallgren wrote: This project might be perceived as a thirdparty add-on and thus, fail its purpose. The steering committee must stand behind this officially. Will you? What's your opinion about the suggestion? Behind what?

Re: [GENERAL] copy a database

2004-08-25 Thread Oliver Elphick
On Wed, 2004-08-25 at 17:09, Alvaro Herrera wrote: > On Wed, Aug 25, 2004 at 04:25:02PM +0100, Oliver Elphick wrote: > > Maybe recreating pg_user in the database will help. It is a global > > table, so if you have other databases where pg_user exists, copy the row > > from pg_class in that databa

Re: [GENERAL] Unsupported 3rd-party solutions (Was: Few questions

2004-08-25 Thread Marc G. Fournier
On Wed, 25 Aug 2004, Thomas Hallgren wrote: For the first category, an inclusion could be possible if the software has a potential to reach more users and can make the offering more complete in some respect. If that's not the case, it should be included. Most software that "sucks royally" will b

Re: [GENERAL] copy a database

2004-08-25 Thread Alvaro Herrera
On Wed, Aug 25, 2004 at 12:09:58PM -0400, Alvaro Herrera wrote: > No, pg_user is a view on pg_shadow ... > > SELECT pg_shadow.usename, pg_shadow.usesysid, pg_shadow.usecreatedb, > pg_shadow.usesuper, pg_shadow.usecatupd, ''::text AS passwd, > pg_shadow.valuntil, pg_shadow.useconfig FROM p

[GENERAL] The Slony General List

2004-08-25 Thread DeJuan Jackson
It appears that the Slony list isn't accepting traffic/posts at all. I posted a message yesterday (2004-08-24) and haven't even received it myself at this point (2004-08-25). Just thought I'd give a heads up, in case now one knew. ---(end of broadcast)-

Re: [GENERAL] Unsupported 3rd-party solutions (Was: Few questions

2004-08-25 Thread Thomas Hallgren
Marc G. Fournier wrote: 1. your project must be pgxs compatible. 2. it must be hosted on pgFoundry. 3. it must have automatic regression testing built in (perhaps this is part of #1). 4. documentation must follow some guidelines so that it is easy to combine it with other docs. 5. someone must su

Re: [GENERAL] any solution for full text search in Postgres for partial words

2004-08-25 Thread Alvaro Herrera
On Wed, Aug 25, 2004 at 11:14:36AM -0400, Liu, Mingyi wrote: > 1. Is there existing open-source FTI for postgres that allows partial words search? I think a trigram-based solution could help you here. In 8.0beta there is a contrib/pg_trgm module that implements such a thing. It isn't present on

Re: [GENERAL] copy a database

2004-08-25 Thread Alvaro Herrera
On Wed, Aug 25, 2004 at 04:25:02PM +0100, Oliver Elphick wrote: > On Wed, 2004-08-25 at 15:08, David Suela Fernández wrote: > > > The problem is that pg_dump always give me the next error: > > > > pg_dump: SQL command failed > > pg_dump: Error message from server: ERROR: relation "pg_user" does

Re: [GENERAL] Gentoo for production DB server?

2004-08-25 Thread Devrim GUNDUZ
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On Wed, 25 Aug 2004, Mark Gibson wrote: > We've now switched to RHEL3 (management decision - for support!), > which IMHO is an admin nightmare (but thats just RPM's for you). > We had to download and compile several important packages manually,

Re: [GENERAL] Ordering by IN

2004-08-25 Thread Mike Benoit
It might not be pretty but: SELECT * FROM v_fol_unit_pub_utmpt WHERE folder_folder_object = 100120 AND unit IN ( 90072, 90005, 90074, 90075 ) AND unit_pub_type IN ( 2 ) AND utmpt IN ( 1 ) ORDER BY unit = 90072 desc, unit = 90005 desc, unit = 90074 desc; It probably won't work very well if you ne

Re: [GENERAL] Unsupported 3rd-party solutions (Was: Few questions

2004-08-25 Thread Marc G. Fournier
On Wed, 25 Aug 2004, Thomas Hallgren wrote: 1. your project must be pgxs compatible. 2. it must be hosted on pgFoundry. 3. it must have automatic regression testing built in (perhaps this is part of #1). 4. documentation must follow some guidelines so that it is easy to combine it with other docs

Re: [GENERAL] copy a database

2004-08-25 Thread Oliver Elphick
On Wed, 2004-08-25 at 15:08, David Suela Fernández wrote: > The problem is that pg_dump always give me the next error: > > pg_dump: SQL command failed > pg_dump: Error message from server: ERROR: relation "pg_user" does not exist > pg_dump: The command was: SELECT (SELECT usename FROM pg_user WH

[GENERAL] any solution for full text search in Postgres for partial words

2004-08-25 Thread Liu, Mingyi
Sorry if this question has been asked before. I tried to search in postgres mailing lists at http://archives.postgresql.org/pgsql-general/ just now and it gave me error "An error occured! Can not connect to search daemon". Anyway I installed tsearch2 and openFTS and was able to do some searches

Re: [GENERAL] Ordering by IN

2004-08-25 Thread Eric B . Ridge
On Aug 25, 2004, at 2:18 AM, Hadley Willan wrote: Hi,     I was wondering if it's possible to order the result set by some of the set contained in an IN clause. I had to do something like this recently. Ended up with a pl/pgsql function, looked a lot like this: create or replace function arr

Re: [GENERAL] Gentoo for production DB server?

2004-08-25 Thread Greg Donald
On Wed, 2004-08-25 at 08:46, Matthew Marlowe wrote: > Gentoo has alot of features, is amazingly customizeable, and can significantly > reduce long term systems maintenance costs -- but it isn't a silver bullet. You have > to take over some QA tasks that redhat/etc would otherwise be doing. > > W

[GENERAL] help with trigger

2004-08-25 Thread Dino Vliet
Hi folks, I'm new to PostgreSQL and am busy tring to work with it. Of pl/pgsql I know even less and that's the part I have a question on right now. I have this nice example to get me started with pl/pgsql... I have a table with the schedule of a service my sport team wants to offer: Table Sch

Re: [GENERAL] Unsupported 3rd-party solutions (Was: Few questions

2004-08-25 Thread Thomas Hallgren
Christopher, It seems to me that some vital components have already been set up, considering: a) pgxs provides a "build environment" to make it easier to add in "third party extensions" without each of them having to have its own full PG source tree. b) PGFoundry is getting set up as a h

Re: [GENERAL] UTF-8 and LIKE vs =

2004-08-25 Thread Lincoln Yeoh
At 09:20 PM 8/24/2004 +0200, Peter Eisentraut wrote: David Wheeler wrote: > That's not the trouble so much as that the locales can be badly If we always followed the principle "X could be broken, so let's not use X", then we would never get anything done. Instead, "X is broken, so fix it". > broke