mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +03:00
Put back encoding-conversion step in processing of incoming queries;
I had inadvertently omitted it while rearranging things to support length-counted incoming messages. Also, change the parser's API back to accepting a 'char *' query string instead of 'StringInfo', as the latter wasn't buying us anything except overhead. (I think when I put it in I had some notion of making the parser API 8-bit-clean, but seeing that flex depends on null-terminated input, that's not really ever gonna happen.)
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: tcopprot.h,v 1.53 2002/11/15 01:57:28 momjian Exp $
|
||||
* $Id: tcopprot.h,v 1.54 2003/04/27 20:09:44 tgl Exp $
|
||||
*
|
||||
* OLD COMMENTS
|
||||
* This file was created so that other c files could get the two
|
||||
@@ -22,7 +22,6 @@
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "executor/execdesc.h"
|
||||
#include "lib/stringinfo.h"
|
||||
#include "tcop/dest.h"
|
||||
|
||||
|
||||
@@ -32,16 +31,16 @@ extern bool InError;
|
||||
extern CommandDest whereToSendOutput;
|
||||
extern bool log_hostname;
|
||||
extern bool LogSourcePort;
|
||||
extern DLLIMPORT char* debug_query_string;
|
||||
extern DLLIMPORT const char *debug_query_string;
|
||||
|
||||
#ifndef BOOTSTRAP_INCLUDE
|
||||
|
||||
extern List *pg_parse_query(StringInfo query_string, Oid *typev, int nargs);
|
||||
extern List *pg_parse_query(const char *query_string, Oid *typev, int nargs);
|
||||
extern List *pg_analyze_and_rewrite(Node *parsetree);
|
||||
extern List *pg_parse_and_rewrite(char *query_string,
|
||||
extern List *pg_parse_and_rewrite(const char *query_string,
|
||||
Oid *typev, int nargs);
|
||||
extern Plan *pg_plan_query(Query *querytree);
|
||||
extern void pg_exec_query_string(StringInfo query_string,
|
||||
extern void pg_exec_query_string(const char *query_string,
|
||||
CommandDest dest,
|
||||
MemoryContext parse_context);
|
||||
|
||||
|
Reference in New Issue
Block a user