| From: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
|---|---|
| To: | Eladio Rodriguez <elarod01(at)hotmail(dot)com> |
| Cc: | Pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx |
| Subject: | Re: [Pgsql-ayuda] columna NOT NULL |
| Date: | 2003-05-04 21:23:33 |
| Message-ID: | 20030504212333.GD2619@dcc.uchile.cl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
On Wed, Apr 30, 2003 at 04:10:35PM -0600, Eladio Rodriguez wrote:
> [HTML, no veo nada]
ALTER TABLE ... SET NOT NULL ?
Que versión de Postgres tienes? Creo que eso se agregó en 7.2 o 7.3.
Si eso no funciona, prueba seteando attnotnull en pg_attribute, pero con
mucho cuidado porque ya hubo aquí alguien que jugó con los catálogos de
sistema y luego quedó con algo inusable. Ojo con tener valores NULL en
la columna, eso es pecado.
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Find a bug in a program, and fix it, and the program will work today.
Show the program how to find and fix a bug, and the program
will work forever" (Oliver Silfridge)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2003-05-04 21:25:22 | Re: [Pgsql-ayuda] columna NOT NULL |
| Previous Message | Alvaro Herrera | 2003-05-04 21:02:20 | [Pgsql-ayuda] Re: Conexión rechazada |