]> granicus.if.org Git - postgresql/blobdiff - src/include/catalog/heap.h
Add CASCADE option to TRUNCATE. Joachim Wieland
[postgresql] / src / include / catalog / heap.h
index 02845920b951137eb61dac47fb952fd89e35a88c..09516ed0215a8cef1587325a4099f129d5d0995b 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/include/catalog/heap.h,v 1.75 2005/08/26 03:08:15 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/catalog/heap.h,v 1.77 2006/03/03 03:30:53 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -23,8 +23,7 @@
 typedef struct RawColumnDefault
 {
        AttrNumber      attnum;                 /* attribute to attach default to */
-       Node       *raw_default;        /* default value (untransformed parse
-                                                                * tree) */
+       Node       *raw_default;        /* default value (untransformed parse tree) */
 } RawColumnDefault;
 
 typedef struct CookedConstraint
@@ -63,6 +62,8 @@ extern void heap_truncate(List *relids);
 
 extern void heap_truncate_check_FKs(List *relations, bool tempTables);
 
+extern List *heap_truncate_find_FKs(List *relationIds);
+
 extern List *AddRelationRawConstraints(Relation rel,
                                                  List *rawColDefaults,
                                                  List *rawConstraints);