mirror of
https://github.com/postgres/postgres.git
synced 2026-02-03 20:40:14 -05:00
lists are now plain old garden-variety Lists, allocated with palloc, rather than specialized expansible-array data allocated with malloc. This substantially simplifies their handling and eliminates several sources of memory leakage. Several basic types of erroneous queries (syntax error, attempt to insert a duplicate key into a unique index) now demonstrably leak zero bytes per query.
20 lines
448 B
C
20 lines
448 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* parser.h
|
|
*
|
|
*
|
|
*
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: parser.h,v 1.5 1999/05/13 07:29:20 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef PARSER_H
|
|
#define PARSER_H
|
|
|
|
#include <parser/parse_node.h>
|
|
|
|
extern List *parser(char *str, Oid *typev, int nargs);
|
|
|
|
#endif /* PARSER_H */
|