[HACKERS] Proposal : composite type not null constraints

Поиск
Список
Период
Сортировка
От Wesley Massuda
Тема [HACKERS] Proposal : composite type not null constraints
Дата
Msg-id CABsWHhjt4YFDDeknzhGd4S03oSxmWYELOfi80gwQ4cPu-=YYUA@mail.gmail.com
обсуждение исходный текст
Ответы Re: [HACKERS] Proposal : composite type not null constraints  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I would like to propose extending composite types with constraints. Currently there is a preliminar patch for not null constraints. 

===
Changes : 
  -Use the parser from create table to get the constraints 'OptTableElementList' instead of 'OptTableFuncElementList'.
  - Add a new transformation transformCompositeTypeStmt similar to transformCreateStmt to add constraint informations to stmt.
   - Implement a recursive notnull check  when a type is composite 
==
Features enabled :
 - Enable not null in parser for 
create type tyname AS (  a  type NOT NULL )
 - Check for null in rowtypes 

===



Wesley S. Massuda
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: [HACKERS] Missing newlines in error messages
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Missing newlines in error messages