[Pgsql-ayuda] columna NOT NULL
Alvaro Herrera
alvherre@dcc.uchile.cl
Sun, 4 May 2003 17:23:33 -0400
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)