This documentation is for an unsupported version of PostgreSQL.
	    You may want to view the same page for the
	    
current
	    version, or one of the other supported versions listed above instead.
	  
            
  
  Name
SPI_copytuple -- Makes copy of tuple in
  upper Executor context
 
  
  Synopsis
  
SPI_copytuple(tuple)
  
    
    Inputs
    
      
        - HeapTuple tuple
- 
          Input tuple to be copied 
 
   
  
    
    Outputs
    
      
        - HeapTuple
- 
          Copied tuple 
            
              
                | non-NULL if
                tuple is not NULL
                and the copy was successful |  
                | NULL only if
                tuple is NULL |  
 
 
   
 
  
  Description
  SPI_copytuple makes a copy of tuple
  in upper Executor context. See the section on Memory
  Management.