Re: [ADMIN] Recreate primary key without dropping foreign keys?

2012-04-17 Thread Chris Ernst
On 04/17/2012 07:43 AM, Igor Neyman wrote: >> -Original Message- >> From: Chris Ernst [mailto:cer...@zvelo.com] >> Sent: Monday, April 16, 2012 10:55 PM >> To: pgsql-admin@postgresql.org >> Subject: Re: Recreate primary key without dropping foreign keys? >> >> On 04/16/2012 07:02 PM, amador

Re: [ADMIN] Recreate primary key without dropping foreign keys?

2012-04-17 Thread amador alvarez
Unfortunately I checked out that the deferrable option does not let us drop the PK (postgres8.4) while remaining FK's , I did not try on the constraint as NOT VALID is not supported by postgres8. So unless you have a 9 release or you get a try on a parallel table, you have to follow the manua

Re: [ADMIN] Recreate primary key without dropping foreign keys?

2012-04-17 Thread Igor Neyman
> -Original Message- > From: Chris Ernst [mailto:cer...@zvelo.com] > Sent: Monday, April 16, 2012 10:55 PM > To: pgsql-admin@postgresql.org > Subject: Re: Recreate primary key without dropping foreign keys? > > On 04/16/2012 07:02 PM, amador alvarez wrote: > > How about deferring the FK's

Re: [ADMIN] invalid byte sequence for encoding "UTF8": 0xf481 - how could this happen?

2012-04-17 Thread Albe Laurenz
Rural Hunter wrote: > My db is in utf-8, I have a row in my table say tmp_article and I wanted > to generate ts_vector from the article content: > select to_tsvector(content) from tmp_article; > But I got this error: > ERROR: invalid byte sequence for encoding "UTF8": 0xf481 >