On Fri, Jan 13, 2012 at 10:48:56AM +0100, Pierre C wrote:
> Maybe an extra column in pg_proc would do (but then, the proargtypes
> and friends would describe only the sql-callable version) ?
> Or an extra table ? pg_cproc ?
> Or an in-memory hash : hashtable[ fmgr-callable function ] => C version
> - What happens if a C function has no SQL-callable equivalent ?
> Or (ugly) introduce an extra per-type function
> type_get_function_ptr( function_kind ) which returns the requested
> function ptr
> If one of those happens, I'll dust off my old copy-optimization patch ;)
I agree that COPY is ripe for optimization, and I am excited you have
some ideas on this.
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
+ It's impossible for everything to be true. +
In response to
pgsql-hackers by date
|Next:||From: Andrew Dunstan||Date: 2012-01-28 15:31:57|
|Subject: Re: initdb and fsync|
|Previous:||From: Simon Riggs||Date: 2012-01-28 13:57:58|
|Subject: Re: Avoiding shutdown checkpoint at failover|