2006-07-04 00:45:41 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* reloptions.h
|
|
|
|
* Core support for relation options (pg_class.reloptions)
|
|
|
|
*
|
|
|
|
* Note: the functions dealing with text-array reloptions values declare
|
|
|
|
* them as Datum, not ArrayType *, to avoid needing to include array.h
|
|
|
|
* into a lot of low-level code.
|
|
|
|
*
|
|
|
|
*
|
2009-01-01 18:24:05 +01:00
|
|
|
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
|
2006-07-04 00:45:41 +02:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
2009-01-01 18:24:05 +01:00
|
|
|
* $PostgreSQL: pgsql/src/include/access/reloptions.h,v 1.6 2009/01/01 17:23:56 momjian Exp $
|
2006-07-04 00:45:41 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef RELOPTIONS_H
|
|
|
|
#define RELOPTIONS_H
|
|
|
|
|
|
|
|
#include "nodes/pg_list.h"
|
|
|
|
|
|
|
|
extern Datum transformRelOptions(Datum oldOptions, List *defList,
|
2006-10-04 02:30:14 +02:00
|
|
|
bool ignoreOids, bool isReset);
|
2006-07-04 00:45:41 +02:00
|
|
|
|
2007-12-02 00:44:44 +01:00
|
|
|
extern List *untransformRelOptions(Datum options);
|
|
|
|
|
2006-07-04 00:45:41 +02:00
|
|
|
extern void parseRelOptions(Datum options, int numkeywords,
|
2006-10-04 02:30:14 +02:00
|
|
|
const char *const * keywords,
|
|
|
|
char **values, bool validate);
|
2006-07-04 00:45:41 +02:00
|
|
|
|
|
|
|
extern bytea *default_reloptions(Datum reloptions, bool validate,
|
2006-10-04 02:30:14 +02:00
|
|
|
int minFillfactor, int defaultFillfactor);
|
2006-07-04 00:45:41 +02:00
|
|
|
|
|
|
|
extern bytea *heap_reloptions(char relkind, Datum reloptions, bool validate);
|
|
|
|
|
|
|
|
extern bytea *index_reloptions(RegProcedure amoptions, Datum reloptions,
|
2006-10-04 02:30:14 +02:00
|
|
|
bool validate);
|
2006-07-04 00:45:41 +02:00
|
|
|
|
|
|
|
#endif /* RELOPTIONS_H */
|