Skip site navigation (1) Skip section navigation (2)

lo_creat SQL command

From: Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com>
To: PostgreSQL Novice <pgsql-novice(at)postgresql(dot)org>
Subject: lo_creat SQL command
Date: 2005-04-21 20:18:57
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice

I'd be so apprecited if somebody could help me to figure out the
meaning of required parameter for lo_creat() function. In libpq, you
just pass connection and mode params to lo_creat() function. But when
we look at the server-side lo_create() function:

Schema: pg_catalog
Name: lo_creat
Result data type: oid
Argument data types: integer

documentation/lo-funcs.html just uses -1 to create a new empty lo. I'm
cosidering parameter as the database connection to create the large
object. So -1 indicates the current connection. If this is right, how
can I pass another connection to lo_creat() SQL function?

Also it'd perfect if somebody can also point me the file in postgresql
source code which defines these lo functions.



pgsql-novice by date

Next:From: Olivier ThauvinDate: 2005-04-21 20:23:26
Subject: Re: plperl user function
Previous:From: Keith WorthingtonDate: 2005-04-21 19:38:01
Subject: plperl user function

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group