Search Postgresql Archives

Re: Benchmarking partitioning triggers and rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I understand that there is overhead involved in parsing the strings and such.  The amount of overhead was surprising to me but that's another matter.  What I am really puzzled about is the difference between the statements

EXECUTE  'INSERT INTO ' ||  quote_ident(partition_name) ||  ' SELECT ($1).*' USING NEW ;

and

  EXECUTE  'INSERT INTO ' ||  quote_ident(partition_name) ||  ' VALUES (($1).*)' USING NEW ;

They both do string interpolation but one is significantly faster than the other.   Is there a third and even faster way?

I am using RDS so I can't really do stored procs in C.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux