Interface TupleDescriptor.Interned

All Superinterfaces:
Collection<Attribute>, Iterable<Attribute>, List<Attribute>, SequencedCollection<Attribute>, TargetList, TargetList.Projection, TupleDescriptor
Enclosing interface:
TupleDescriptor

public static interface TupleDescriptor.Interned extends TupleDescriptor
A descriptor that either describes a known composite type in the catalogs, or has been interned in PostgreSQL's type cache, and has a distinct rowType that can be used to identify it for the duration of the session.

Some operations, such as constructing a composite value for a function to return, require this.

  • Method Details

    • intern

      default TupleDescriptor.Interned intern()
      Description copied from interface: TupleDescriptor
      Return this descriptor unchanged if it is already interned in PostgreSQL's type cache, otherwise an equivalent new descriptor with a different rowType uniquely assigned to identify it for the duration of the session.

      PostgreSQL calls this operation "BlessTupleDesc", which updates the descriptor in place; in PL/Java code, the descriptor returned by this method should be used in place of the original.

      Specified by:
      intern in interface TupleDescriptor