PL/Perl

PL/Perl — это расширение СУБД PostgreSQL, позволяющее использовать язык программирования Perl для написания хранимых процедур и функций, в частности, триггеров.

PL/Perl обеспечивает вызов интерпретатора Perl для выполнения программного кода этих функций или процедур, и дает ему доступ к серверному API (SPI) ядра СУБД.

PL/Perl определяет два процедурных языка — plperl (Trusted) и plperlu (Untrusted). В первом случае разрешены все операции языка Perl, включая Ввод-вывод за пределы базы данных и работу с сетью, но создание функций или процедур на этом языке возможно только для привилегированного пользователя. Во втором случае операции ввода/вывода, кроме работы с СУБД, заблокированы, однако функции или процедуры может создавать любой пользователь.

PL/Perl является частью PostgreSQL и поддерживается разработчиками PostgreSQL.

См. также

Примечания

Литература

  • Актуальная документация PL/Perl.
  • Andrew Dunstan. Using Perl in PostgreSQL. O'Reilly (10 ноября 2005). Дата обращения: 11 августа 2013. Архивировано 17 августа 2013 года.
  • Евгений Балдин. PostgreSQL. Часть 3: Возможности: Работа с базой // LinuxFormat. — 2007. — 1 (87-88). — С. 80—85.
  • Korry Douglas, Susan Douglas. PostgreSQL: A Comprehensive Guide to Building, Programming, and Administering PostgreSQL Databases. — Sams Publishing, 2003. — 790 p. — (Developer's library). — ISBN 978-0-7357-1257-7.
  • Иван Панченко. PostgreSQL: Серверное программирование на «человеческом» языке (PL/Perl, PL/Python, PL/v8) // Хабр. — 2020.

Ссылки

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.