Commit 67ad9a18 authored by Tom Lane's avatar Tom Lane

define YY_NEVER_INTERACTIVE for flex, to persuade flex that it's not

necessary to call isatty() for each and every received query.  That's
one less kernel call per query cycle ...
parent d45f7dfd
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.68 2000/03/18 18:03:09 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.69 2000/05/27 05:13:38 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -42,6 +42,7 @@ static char *parseCh; ...@@ -42,6 +42,7 @@ static char *parseCh;
/* set up my input handler --- need one flavor for flex, one for lex */ /* set up my input handler --- need one flavor for flex, one for lex */
#if defined(FLEX_SCANNER) #if defined(FLEX_SCANNER)
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_UNPUT #define YY_NO_UNPUT
static int myinput(char* buf, int max); static int myinput(char* buf, int max);
#undef YY_INPUT #undef YY_INPUT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment