1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-28 11:55:03 +03:00
Files
postgres/src/include/optimizer/internal.h
Bruce Momjian 5c25d60244 Add:
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc

to all files copyright Regents of Berkeley.  Man, that's a lot of files.
2000-01-26 05:58:53 +00:00

57 lines
1.2 KiB
C

/*-------------------------------------------------------------------------
*
* internal.h
* Definitions required throughout the query optimizer.
*
*
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: internal.h,v 1.26 2000/01/26 05:58:20 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef INTERNAL_H
#define INTERNAL_H
#include "catalog/pg_index.h"
/*
* ---------- SHARED MACROS
*
* Macros common to modules for creating, accessing, and modifying
* query tree and query plan components.
* Shared with the executor.
*
*/
/*
* Size estimates
*
*/
/* The cost of sequentially scanning a materialized temporary relation
*/
#define _NONAME_SCAN_COST_ 10
/* The number of pages and tuples in a materialized relation
*/
#define _NONAME_RELATION_PAGES_ 1
#define _NONAME_RELATION_TUPLES_ 10
/* The length of a variable-length field in bytes (stupid estimate...)
*/
#define _DEFAULT_ATTRIBUTE_WIDTH_ 12
/*
* Flags and identifiers
*
*/
/* Identifier for (sort) temp relations */
/* used to be -1 */
#define _NONAME_RELATION_ID_ InvalidOid
#endif /* INTERNAL_H */