INSERT INTO article_galley_settings (galley_id, setting_name, setting_value, setting_type, locale) SELECT galley_id, 'pub-id::publisher-id', public_galley_id, 'string', '' FROM tmp_public_galley_ids DROP TABLE tmp_public_galley_ids