mirror of
https://github.com/postgres/postgres.git
synced 2026-02-16 00:57:52 -05:00
The previous message didn't mention the name of the table or the bounds. Put the table name in the primary error message and the bounds in the detail message. Amit Langote, changed slightly by me. Suggestions on the exac phrasing from Tom Lane, David G. Johnston, and Dean Rasheed. Discussion: http://postgr.es/m/CA+Tgmoae6bpwVa-1BMaVcwvCCeOoJ5B9Q9-RHWo-1gJxfPBZ5Q@mail.gmail.com
38 lines
1.3 KiB
C
38 lines
1.3 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* ruleutils.h
|
|
* Declarations for ruleutils.c
|
|
*
|
|
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/utils/ruleutils.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef RULEUTILS_H
|
|
#define RULEUTILS_H
|
|
|
|
#include "nodes/nodes.h"
|
|
#include "nodes/parsenodes.h"
|
|
#include "nodes/pg_list.h"
|
|
|
|
|
|
extern char *pg_get_indexdef_string(Oid indexrelid);
|
|
extern char *pg_get_indexdef_columns(Oid indexrelid, bool pretty);
|
|
|
|
extern char *pg_get_partkeydef_columns(Oid relid, bool pretty);
|
|
|
|
extern char *pg_get_constraintdef_command(Oid constraintId);
|
|
extern char *deparse_expression(Node *expr, List *dpcontext,
|
|
bool forceprefix, bool showimplicit);
|
|
extern List *deparse_context_for(const char *aliasname, Oid relid);
|
|
extern List *deparse_context_for_plan_rtable(List *rtable, List *rtable_names);
|
|
extern List *set_deparse_context_planstate(List *dpcontext,
|
|
Node *planstate, List *ancestors);
|
|
extern List *select_rtable_names_for_explain(List *rtable,
|
|
Bitmapset *rels_used);
|
|
extern char *generate_collation_name(Oid collid);
|
|
extern char *get_range_partbound_string(List *bound_datums);
|
|
|
|
#endif /* RULEUTILS_H */
|