Re: [HACKERS] named generic constraints [feature request]

2009-12-06 Thread Caleb Cushing
UNIQUE CHECK ( NOT empty) ); -- Caleb Cushing http://xenoterracide.blogspot.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] named generic constraints [feature request]

2009-11-23 Thread Caleb Cushing
to do thinks like CREATE TABLE users ( username TEXT NOT empty ); the example from create domain (modified) is also pretty good CREATE CONSTRAINT zip CHECK( VALUE ~ '^\\d{5}$' OR VALUE ~ '^\\d{5}-\\d{4}$' ); -- Caleb Cushing http://xenoterracide.blogspot.com -- Sent via

Re: [HACKERS] named generic constraints [feature request]

2009-11-23 Thread Caleb Cushing
of. p.s. Is it related to ANSI SQL? not to my knowledge (can't say that it isn't though, I've never read the standard). -- Caleb Cushing http://xenoterracide.blogspot.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http

Re: [HACKERS] named generic constraints [feature request]

2009-11-23 Thread Caleb Cushing
be SELECT $1 = ''; -- you have a double negative -- Caleb Cushing http://xenoterracide.blogspot.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] single bit integer (TINYINT) revisited for 8.5

2009-07-01 Thread Caleb Cushing
worked on I've needed and integer field that supports number within a small range 0-5 1-10 1-100 or something similar. I end up using smallint but it's range is huge for the actual requirements. -- Caleb Cushing http://xenoterracide.blogspot.com -- Sent via pgsql-hackers mailing list (pgsql-hackers

[HACKERS] single bit integer (TINYINT) revisited for 8.5

2009-07-01 Thread Caleb Cushing
? -- Caleb Cushing http://xenoterracide.blogspot.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] single bit integer (TINYINT) revisited for 8.5

2009-07-01 Thread Caleb Cushing
on that 100%... but to some degree that's what sql is for... at the same time that kinda sounds like sqlite's more dynamic like typing. but it is another discussion -- Caleb Cushing http://xenoterracide.blogspot.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make