X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A60F332B4D6 for ; Fri, 15 Oct 2004 02:19:22 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 23896-08 for ; Fri, 15 Oct 2004 01:19:16 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id E265232B3AD for ; Fri, 15 Oct 2004 02:19:19 +0100 (BST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i9F1JFJ7025861 for ; Fri, 15 Oct 2004 01:19:15 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i9F0pWnq018587 for pgsql-sql@postgresql.org; Fri, 15 Oct 2004 00:51:32 GMT From: ljb X-Newsgroups: comp.databases.postgresql.sql Subject: Re: libpq-fe: PQgetvalue() ? Date: Fri, 15 Oct 2004 00:51:32 +0000 (UTC) Organization: Hub.Org Networking Services Lines: 17 Message-ID: References: <200410141634.22769.sad@bankir.ru> X-Complaints-To: usenet@news.hub.org User-Agent: slrn/0.9.8.0 (Linux) To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=FROM_ENDS_IN_NUMS X-Spam-Level: X-Archive-Number: 200410/128 X-Sequence-Number: 19231 sad@bankir.ru wrote: > hi > > does PQgetvalue() allocate memory rof its result, it returns ? > the answer will help me in problem: > should i free some cstring_variable if > { cstring_variable=PQgetvalue(pgresult_variable,0,0); } > and could i PQclear(pgresult_varible) while cstring_varible is in use.