postgresql_16:6.8.8.2 Limitations and Missing Features
PostgreSQL 16 > Server Programming > PL/Perl — Perl Procedural Language > PL/Perl Under the Hood > Limitations and Missing Features
The following features are currently missing from PL/Perl, but they would make welcome contributions. PL/Perl functions cannot call each other directly. SPI is not yet fully implemented. If you are fetching very large data sets using spi_exec_query, you should be aware that these will all go into memory. You can avoid this by using spi_query/spi_fetchrow as illustrated earlier. A similar problem occurs if a set-returning function passes a large set of rows back to PostgreSQL via return. You can avoid this problem too by instead using return_next for each row returned, as shown previously. When a session ends normally, not due to a fatal error, any END blocks that have been defined are executed. Currently no other actions are performed. Specifically, file handles are not automatically flushed and objects are not automatically destroyed.