| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| /*------------------------------------------------------------------------- |
| * |
| * print.h |
| * definitions for nodes/print.c |
| * |
| * |
| * Portions Copyright (c) 2007-2008, Greenplum inc |
| * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group |
| * Portions Copyright (c) 1994, Regents of the University of California |
| * |
| * $PostgreSQL: pgsql/src/include/nodes/print.h,v 1.25 2006/03/05 15:58:57 momjian Exp $ |
| * |
| *------------------------------------------------------------------------- |
| */ |
| #ifndef PRINT_H |
| #define PRINT_H |
| |
| #include "nodes/parsenodes.h" |
| |
| struct Plan; /* #include "nodes/plannodes.h" */ |
| struct Query; /* #include "nodes/plannodes.h" */ |
| struct TupleTableSlot; /* #include "executor/tuptable.h" */ |
| |
| #define nodeDisplay(x) pprint(x) |
| |
| extern char * plannode_type(struct Plan *p); |
| extern void print(void *obj); |
| extern void pprint(void *obj); |
| extern void elog_node_display(int lev, const char *title, |
| void *obj, bool pretty); |
| extern char *format_node_dump(const char *dump); |
| extern char *pretty_format_node_dump(const char *dump); |
| extern void print_rt(List *rtable); |
| extern void print_expr(Node *expr, List *rtable); |
| extern void print_pathkeys(List *pathkeys, List *rtable); |
| extern void print_tl(List *tlist, List *rtable); |
| extern void print_slot(struct TupleTableSlot *slot); |
| extern void print_plan_recursive(struct Plan *p, struct Query *parsetree, |
| int indentLevel, char *label); |
| extern void print_plan(struct Plan *p, struct Query *parsetree); |
| |
| #endif /* PRINT_H */ |