Received: from mail1.rdc2.ab.home.com (mail1.rdc2.ab.home.com [24.64.2.48]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1NLOLx07184 for ; Fri, 23 Feb 2001 16:24:21 -0500 (EST) (envelope-from wsmuir@islandnet.com) Received: from fozzy ([24.67.94.214]) by mail1.rdc2.ab.home.com (InterMail vM.4.01.03.00 201-229-121) with SMTP id <20010223212415.KGPD21022.mail1.rdc2.ab.home.com@fozzy> for ; Fri, 23 Feb 2001 13:24:15 -0800 From: "Scott Muir" To: Subject: SPI - couple things (7.0.2) Date: Fri, 23 Feb 2001 14:23:38 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200102/167 X-Sequence-Number: 1131 Last night, I attempted to access the data of several TEXT parameters into a 'language 'C'' function I've created and got an interesting result... on of the strings gets a little garbled on the end... I haven't attempted to debug it yet (isoloate the behaviour; gave up; went home) but I"m wondering if it can be assumed that the (char *) part of the TEXT struct (VARDATA) has been terminated at the length specified by the (VARLEN())?? part. What I'm passing is a TEXT field containing a unix filesystem path, and there seems to be either a couple chars added on the end, or the last couple char of the path are unprintable type things... (possibly a backspace character at the end?) question #2... W.R.T. creating the function stub in a database, CREATE FUNCTION test_func (text) returns int4 as '/usr/local/pgsql/cfunc.so', 'cfunc' LANGUAGE 'C'; pg_dump doesn't seem to include the extra 'cfunc' in the output of this line... this is an annoyance as everytime i use pgdump to move the database over to another machine, i have to edit this back in before sucking it in through psql. so the question is, "what's up with this?" 8) thanks Scott.