Re: [HACKERS] about date/time parser

2008-02-21 Thread Gevik Babakhani
> Almost certainly neither workable nor an improvement if you > did make it work. Datetimes don't have enough structure to > make yacc useful, and it's not flexible enough either. Understood. Thank you :) ---(end of broadcast)--- TIP 3: Have you

Re: [HACKERS] about date/time parser

2008-02-21 Thread Tom Lane
"Gevik Babakhani" <[EMAIL PROTECTED]> writes: > Would a yacc/lex parser be better? Almost certainly neither workable nor an improvement if you did make it work. Datetimes don't have enough structure to make yacc useful, and it's not flexible enough either. regards, tom la

[HACKERS] about date/time parser

2008-02-21 Thread Gevik Babakhani
regarding http://archives.postgresql.org/pgsql-hackers/2008-02/msg00826.php I was wondering why we have a custom written parser to parse the date/time from/to string and vice versa? Is there a historical reason? Would a yacc/lex parser be better? Regards, Gevik ---(end