Added the sequence name to getLastGeneratedValue() which is required for Pos
tgreSQL.
Merging PR #5577
Merge branch 'imel96-zf4707'

* imel96-zf4707:
  Added the sequence name to getLastGeneratedValue() which is required for Pos tgreSQL.