Fix insert_lock() to obtain proper sequence name by considering
authorTatsuo Ishii <ishii at sraoss.co.jp>
Sun, 14 Nov 2010 10:59:21 +0000 (10:59 +0000)
committerTatsuo Ishii <ishii at sraoss.co.jp>
Sun, 14 Nov 2010 10:59:21 +0000 (10:59 +0000)
commit8b9e92cb1e9c920f033814a541f542ffa1fac43e
tree38ab23fd775d8378bd201c3124e98dae421df7fc
parent7099ed510f46857b03d75790740ea146aa797f0f
Fix insert_lock() to obtain proper sequence name by considering
that get_insert_command_table_name() returns double-qutation-added
table name. Without this, pgpool tries to execute
SELECT * FROM "foo"_bar_seq FOR UPDATED, which interepreted as
SELECT * FROM "foo" AS _bar_seq FOR UPDATED.
pool_process_query.c