Re: [GENERAL] on delete cascade slowing down delete

2008-08-24 Thread Alban Hertroys
On Aug 22, 2008, at 9:45 AM, Ivan Sergio Borgonovo wrote: On Fri, 22 Aug 2008 08:48:30 +0200 Alban Hertroys <[EMAIL PROTECTED]> wrote: Is it going to make things faster if I: delete from s; reindex table s; Why do you think this step would help you any? There's no index on p to begin wit

Re: [GENERAL] SERIAL datatype

2008-08-24 Thread Alban Hertroys
On Aug 21, 2008, at 9:51 PM, Peter Billen wrote: My concern is not that the table will become full, but that the sequence will be exhausted. Doing INSERT, DELETE, INSERT, DELETE ... will exhaust the sequence. What will happen then? Do I have to manually re-order my serial values and reset t

Re: [GENERAL] Array, ANY and Regular Expressions

2008-08-24 Thread Stefan 'Kaishakunin' Schumacher
Also sprach Tom Lane ([EMAIL PROTECTED]) > "Stefan 'Kaishakunin' Schumacher" <[EMAIL PROTECTED]> writes: > > I have a table with an array column (tags text[]) which I want to > > select from via ANY and RegExes. > > > SELECT tags from zettelkasten where 'Sozialpsychologie' ~* any(tags) order > >

Re: [GENERAL] psql \df+ [pattern] with overloaded functions

2008-08-24 Thread Alvaro Herrera
Richard Broersma escribió: > Using psql, how can I use specify a pattern for \df+ to only show a > single overloaded function. The following is a list of my overloaded > functions, and following this is an example what what happens when I > try to limit the list by including the function signature

Re: [GENERAL] seq bug 2073 and time machine

2008-08-24 Thread Alvaro Herrera
Ivan Sergio Borgonovo wrote: > I was trying to drop a serial. > Dropped the default for a column. > Now it seems I can't drop the sequence since I incurred in: > > http://archives.postgresql.org/pgsql-bugs/2005-11/msg00304.php > > Is there a way I can still delete the sequence without using a > b

Re: [GENERAL] Connection to second database on server

2008-08-24 Thread Troy Rasiah
Hermann Muster wrote: > Bill Moran wrote: >> In response to Hermann Muster <[EMAIL PROTECTED]>: >> >> >>> Hello everyone, >>> >>> I already asked about that a couple of days ago, but didn't get an >>> satisfying solution for my problem which is following: >>> >>> I need to create a view that

Re: [GENERAL] Connection to second database on server

2008-08-24 Thread Scott Marlowe
On Sun, Aug 24, 2008 at 8:43 PM, Troy Rasiah <[EMAIL PROTECTED]> wrote: > > Sorry for bringing up an old post...If you have a generic set of tables.. > > eg. table of countries / post codes etc which are used across several > databases what is the best way to access / store them? > I currently > -

Re: [GENERAL] Connection to second database on server

2008-08-24 Thread Troy Rasiah
Scott Marlowe wrote: > On Sun, Aug 24, 2008 at 8:43 PM, Troy Rasiah <[EMAIL PROTECTED]> wrote: >> Sorry for bringing up an old post...If you have a generic set of tables.. >> >> eg. table of countries / post codes etc which are used across several >> databases what is the best way to access / sto

[GENERAL] Issue with creation of Partial_indexes (Immutable?)

2008-08-24 Thread Ow Mun Heng
CREATE INDEX idx_d_trh_code_id_partial ON xmms.d_trh_table USING btree (code_id) where code_id not in ('P000','000') and code_id is not null; ERROR: functions in index predicate must be marked IMMUTABLE Just trying something new. I want to create partial indexes on code_id which are not nu

Re: [GENERAL] Connection to second database on server

2008-08-24 Thread Scott Marlowe
On Sun, Aug 24, 2008 at 10:19 PM, Troy Rasiah <[EMAIL PROTECTED]> wrote: > > > Scott Marlowe wrote: >> On Sun, Aug 24, 2008 at 8:43 PM, Troy Rasiah <[EMAIL PROTECTED]> wrote: >>> Sorry for bringing up an old post...If you have a generic set of tables.. >>> >>> eg. table of countries / post codes et

Re: [GENERAL] Connection to second database on server

2008-08-24 Thread Troy Rasiah
Scott Marlowe wrote: > On Sun, Aug 24, 2008 at 10:19 PM, Troy Rasiah <[EMAIL PROTECTED]> wrote: >> >> Scott Marlowe wrote: >>> On Sun, Aug 24, 2008 at 8:43 PM, Troy Rasiah <[EMAIL PROTECTED]> wrote: Sorry for bringing up an old post...If you have a generic set of tables.. eg. table

Re: [GENERAL] Issue with creation of Partial_indexes (Immutable?)

2008-08-24 Thread Ow Mun Heng
On Mon, 2008-08-25 at 12:23 +0800, Ow Mun Heng wrote: > CREATE INDEX idx_d_trh_code_id_partial > ON xmms.d_trh_table > USING btree > (code_id) where code_id not in ('P000','000') and code_id is not null; > ERROR: functions in index predicate must be marked IMMUTABLE > > Just trying somethin

Re: [GENERAL] on delete cascade slowing down delete

2008-08-24 Thread Ivan Sergio Borgonovo
On Sun, 24 Aug 2008 13:37:11 +0200 Alban Hertroys <[EMAIL PROTECTED]> wrote: > >>> Is it going to make things faster if I: > >>> delete from s; > >>> reindex table s; > >> Why do you think this step would help you any? There's no index > >> on p to begin with. You'd just be reindexing the auto-g