Re: [GENERAL] Rename a constraint

2011-05-29 Thread Thom Brown
On 29 May 2011 16:12, Tom Lane wrote: > Thom Brown writes: >> On 10 January 2009 19:22, Raymond O'Donnell wrote: >>> On 10/01/2009 19:15, Thom Brown wrote: I can't find anything in the documentation, but does anyone know if there is a way to rename a constraint? > >>> I just tried it w

Re: [GENERAL] Rename a constraint

2011-05-29 Thread Tom Lane
Thom Brown writes: > On 10 January 2009 19:22, Raymond O'Donnell wrote: >> On 10/01/2009 19:15, Thom Brown wrote: >>> I can't find anything in the documentation, but does anyone know if >>> there is a way to rename a constraint? >> I just tried it with a primary key... >> >> test=# alter table

Re: [GENERAL] Rename a constraint

2011-05-29 Thread Thom Brown
On 10 January 2009 19:22, Raymond O'Donnell wrote: > On 10/01/2009 19:15, Thom Brown wrote: >> I can't find anything in the documentation, but does anyone know if >> there is a way to rename a constraint? > > I just tried it with a primary key... > > test=# alter table t1 alter constraint t1_pk re

Re: [GENERAL] Rename a constraint

2009-01-10 Thread Thom Brown
That would make more sense wouldn't it. :) Yeah, I think that's the answer. Cheers! Thom 2009/1/10 Raymond O'Donnell > On 10/01/2009 19:15, Thom Brown wrote: > > I can't find anything in the documentation, but does anyone know if > > there is a way to rename a constraint? > > I just tried it

Re: [GENERAL] Rename a constraint

2009-01-10 Thread Raymond O'Donnell
On 10/01/2009 19:15, Thom Brown wrote: > I can't find anything in the documentation, but does anyone know if > there is a way to rename a constraint? I just tried it with a primary key... test=# alter table t1 alter constraint t1_pk rename to t1_pp; ERROR: syntax error at or near "constraint" LI

[GENERAL] Rename a constraint

2009-01-10 Thread Thom Brown
I can't find anything in the documentation, but does anyone know if there is a way to rename a constraint? Thanks Thom