Take a look in the issue about how the column name is generated.

Luciano Baraglia
---------------------------

Desde el celular.
El ene 21, 2014 9:34 a.m., "Carsten Brandt" <notifications@github.com>
escribió:

> In framework/db/pgsql/Schema.php:
>
> > @@ -283,7 +283,7 @@ public function findUniqueIndexes($table)
> >  				// Index is an expression like "lower(colname::text)"
> >  				$indexColumns = preg_replace("/.*\(([^\:]+).*/mi", "$1", $index['indexcolumns']);
> >  			} else {
> > -				$indexColumns = array_map('trim', explode(',', str_replace(['{', '}'], '', $index['indexcolumns'])));
> > +				$indexColumns = array_map('trim', explode(',', str_replace(['{', '}', '"', '\\'], '', $index['indexcolumns'])));
>
> why add \ here?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/yiisoft/yii2/pull/2090/files#r9035166>
> .
>