]> granicus.if.org Git - postgresql/blobdiff - src/include/access/printtup.h
Implement feature of new FE/BE protocol whereby RowDescription identifies
[postgresql] / src / include / access / printtup.h
index 4d382249bb23d5f75ec22e14db0ade46c742fe2c..c4c92fb1bb677022694ac519b42e038d8baf6f99 100644 (file)
@@ -1,26 +1,34 @@
 /*-------------------------------------------------------------------------
  *
- * printtup.h--
- *    
+ * printtup.h
  *
  *
- * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: printtup.h,v 1.1 1996/08/27 21:50:19 scrappy Exp $
+ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * $Id: printtup.h,v 1.25 2003/05/06 00:20:33 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
-#ifndef        PRINTTUP_H
+#ifndef PRINTTUP_H
 #define PRINTTUP_H
 
-#include "access/htup.h"
-#include "access/tupdesc.h"
+#include "tcop/dest.h"
+
+extern DestReceiver *printtup_create_DR(bool isBinary, bool sendDescrip);
+
+extern void SendRowDescriptionMessage(TupleDesc typeinfo, List *targetlist);
+
+extern void debugSetup(DestReceiver *self, int operation,
+                  const char *portalName, TupleDesc typeinfo, List *targetlist);
+extern void debugtup(HeapTuple tuple, TupleDesc typeinfo,
+                DestReceiver *self);
 
-extern Oid typtoout(Oid type);
-extern void printtup(HeapTuple tuple, TupleDesc typeinfo);
-extern void showatts(char *name, TupleDesc attinfo);
-extern void debugtup(HeapTuple tuple, TupleDesc typeinfo);
-extern void printtup_internal(HeapTuple tuple, TupleDesc typeinfo);
-extern Oid gettypelem(Oid type);
+/* XXX these are really in executor/spi.c */
+extern void spi_dest_setup(DestReceiver *self, int operation,
+                  const char *portalName, TupleDesc typeinfo, List *targetlist);
+extern void spi_printtup(HeapTuple tuple, TupleDesc tupdesc,
+                        DestReceiver *self);
 
-#endif /* PRINTTUP_H */
+#endif   /* PRINTTUP_H */