Re: [BUGS] no native spinlock support on os x 10.4.7

2006-08-14 Thread Tom Lane
Nick Morrison <[EMAIL PROTECTED]> writes: > This is compiling using darwinports' "port install postgresql" on mac > os x 10.4.7. PostgreSQL version .. > ---> Attempting to fetch postgresql-7.4.12.tar.bz2 from ftp:// > ftp2.ch.postgresql.org/mirror/postgresql/source/v7.4.12 Use something newe

Re: [BUGS] BUG #2574: C function: arg TEXT data corrupt

2006-08-14 Thread Tom Lane
"Michael Enke" <[EMAIL PROTECTED]> writes: > I created a C function: > extern Datum test_arg(PG_FUNCTION_ARGS); > PG_FUNCTION_INFO_V1(test_arg); > Datum test_arg(PG_FUNCTION_ARGS) { > elog(INFO, "arg: %s", VARDATA(PG_GETARG_TEXT_P(0))); > PG_RETURN_INT16(0); The VARDATA of a TEXT datum is not

[BUGS] no native spinlock support on os x 10.4.7

2006-08-14 Thread Nick Morrison
hello, as requested: ../../../../src/include/storage/s_lock.h:543:2: error: #error PostgreSQL does not have native spinlock support on this platform. To continue the compilation, rerun configure using --disable-spinlocks. However, performance will be poor. Please report this to pgsql- [EM

[BUGS] BUG #2574: C function: arg TEXT data corrupt

2006-08-14 Thread Michael Enke
The following bug has been logged online: Bug reference: 2574 Logged by: Michael Enke Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1.4 Operating system: Open Suse 10.1 and CentOS 4.3 Description:C function: arg TEXT data corrupt Details: I created a C func