![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
While it may be possible to load functions written in languages other than C into PostgreSQL, this is usually difficult (when it is possible at all) |
#2
| |||
| |||
|
|
Section 32.9.5. Writing Code of the 8.1 docs says: While it may be possible to load functions written in languages other than C into PostgreSQL, this is usually difficult (when it is possible at all) because other languages, such as C++, FORTRAN, or Pascal often do not follow the same calling convention as C. That is, other languages do not pass argument and return values between functions in the same way This is nonsense. GNU Pascal and GNU C use the same calling conventions. In fact, they share the same compiler-backend. |
#3
| |||
| |||
|
|
Adriaan van Os <pgres (AT) microbizz (DOT) nl> wrote: Section 32.9.5. Writing Code of the 8.1 docs says: While it may be possible to load functions written in languages other than C into PostgreSQL, this is usually difficult (when it is possible at all) because other languages, such as C++, FORTRAN, or Pascal often do not follow the same calling convention as C. That is, other languages do not pass argument and return values between functions in the same way This is nonsense. GNU Pascal and GNU C use the same calling conventions. In fact, they share the same compiler-backend. You seem to be assuming that Postgres will always be built using gcc. That isn't the case. |
![]() |
| Thread Tools | |
| Display Modes | |
| |