Patch for information_schema performance

Started by Joachim Wielandover 16 years ago2 messageshackers
Jump to latest
#1Joachim Wieland
joe@mcknight.de

Hi,

the attached patch addresses the performance issues of the
authorization related views from information_schema (BUG #4596). It
implements what Tom suggests in

http://archives.postgresql.org/pgsql-bugs/2008-12/msg00144.php

In the cases that I have tested both the new and the old view return
the same data but I'd appreciate more tests. The patch currently does
not remove the original views but renames them from xyz to old_xyz, so
you can run your own tests of the new view definition vs. the old one.

I also include a psql file that might help you testing.

Regards,
Joachim

Attachments:

aclexplode.difftext/x-diff; charset=US-ASCII; name=aclexplode.diffDownload+444-24
compare.psqlapplication/octet-stream; name=compare.psqlDownload
#2Peter Eisentraut
peter_e@gmx.net
In reply to: Joachim Wieland (#1)
Re: Patch for information_schema performance

On fre, 2009-09-25 at 00:55 +0200, Joachim Wieland wrote:

the attached patch addresses the performance issues of the
authorization related views from information_schema (BUG #4596). It
implements what Tom suggests in

http://archives.postgresql.org/pgsql-bugs/2008-12/msg00144.php

In the cases that I have tested both the new and the old view return
the same data but I'd appreciate more tests. The patch currently does
not remove the original views but renames them from xyz to old_xyz, so
you can run your own tests of the new view definition vs. the old one.

Committed with a bunch of cleanup.