Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
36.9. Internal Functions
Prev UpChapter 36. ExtendingSQLHome Next

36.9. Internal Functions#

Internal functions are functions written in C that have been statically linked into thePostgreSQL server. Thebody of the function definition specifies the C-language name of the function, which need not be the same as the name being declared for SQL use. (For reasons of backward compatibility, an empty body is accepted as meaning that the C-language function name is the same as the SQL name.)

Normally, all internal functions present in the server are declared during the initialization of the database cluster (seeSection 18.2), but a user could useCREATE FUNCTION to create additional alias names for an internal function. Internal functions are declared inCREATE FUNCTION with language nameinternal. For instance, to create an alias for thesqrt function:

CREATE FUNCTION square_root(double precision) RETURNS double precision    AS 'dsqrt'    LANGUAGE internal    STRICT;

(Most internal functions expect to be declaredstrict.)

Note

Not allpredefined functions areinternal in the above sense. Some predefined functions are written in SQL.


Prev Up Next
36.8. Procedural Language Functions Home 36.10. C-Language Functions
pdfepub
Go to PostgreSQL 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp