<p>In <a href="https://github.com/dbsrgits/sql-translator/pull/51#discussion_r33203051">lib/SQL/Translator/Producer/PostgreSQL.pm</a>:</p>
<pre style='color:#555'>> @@ -553,7 +570,10 @@ sub create_index
> }
> elsif ( $type eq NORMAL ) {
> $index_def =
> - 'CREATE INDEX ' . $generator->quote($name) . ' on ' . $generator->quote($table_name) . ' ' . $field_names
> + 'CREATE INDEX ' . $generator->quote($name) . ' on ' . $generator->quote($table_name) .
> + ($index_using ne '' ? ' ' . $index_using : '') .
</pre>
<p>If you include the leading space when setting the value above, you can get rid of the ugly conditionals here.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/dbsrgits/sql-translator/pull/51/files#r33203051">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AASeAmCLmBJSJ8ZLK5cSntCWDLzeyTrjks5oWyLBgaJpZM4D82zW.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/dbsrgits/sql-translator/pull/51/files#r33203051"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>