Fixes an assertion for postgresql (#7097).
Authored by: jplang 2011-04-29
Parent: [r5602]
Child: [r5604]