From: | Yi LIN <ylin30(at)cs(dot)mcgill(dot)ca> |
---|---|
To: | Paul Thomas <paul(at)tmsl(dot)demon(dot)co(dot)uk> |
Cc: | "pgsql-jdbc (at) postgresql (dot) org" <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: FastPath |
Date: | 2003-06-24 22:03:47 |
Message-ID: | Pine.GSO.4.44.0306241753210.18948-100000@willy |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
HI, Thomas:
Thanks first!
On Tue, 24 Jun 2003, Paul Thomas wrote:
>
> On 23/06/2003 23:04 Yi LIN wrote:
> > HI,
> >
> > I want to call PQfn((PGconn*)conn, ...) in fe-exec.c from Java program
> > using FastPath. However, in Java codes the database connection is
> > pgsql.Connection which is total different from (PGconn*)connection in C.
> > How can I get and pass this parameter, conn? It is required that Java
> > connection is the same as C connection in the backend.
> >
> > For your information, originally I want to call
> > (bytestream*)get_write_set(void)
> > in src/backend/replication/writeset.c.
> >
> > Does anyone know how to solve this? Thanks in advance.
>
> PGConnection.getFastpathAPI() might be what you're looking for.
Suppose I want to call:
PQfn(conn, 1653, (int*)writeset, &bytes, 0, ar, 0); // in c, result
returned in writest.
should my Java codes look like:
((Fastpath)fp).fastpath(1653, false, null); // in Java ??
where, 1653 is fnid of
bytestream* get_write_set(void);
Regards,
Yi
>
> HTH
> --
> Paul Thomas
> +------------------------------+---------------------------------------------+
> | Thomas Micro Systems Limited | Software Solutions for the Smaller
> Business |
> | Computer Consultants |
> http://www.thomas-micro-systems-ltd.co.uk |
> +------------------------------+---------------------------------------------+
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | MAX | 2003-06-24 23:24:29 | Multiple Out params in stored procs |
Previous Message | Kallol Nandi | 2003-06-24 14:11:09 | Re: Urgent : JDBC problem in PostgreSql for Linux |