Skip Menu |

This queue is for tickets about the SQL-Translator CPAN distribution.

Report information
The Basics
Id: 63814
Status: resolved
Priority: 0/
Queue: SQL-Translator

People
Owner: Nobody in particular
Requestors: icestar [...] inbox.ru
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: PostgreSQL producer: create index using hash method
Hello! I've read the documentation on SQL::Translator::Schema::Index module and couldn't understand how I should set the 'options' parameter to create index with the HASH method. I tried to set it like this: my $i1 = $table->add_index( name => 'name', fields => [ 'name' ], options => ['using' => 'hash'], ); but didn't get the expected result, index was created with B-tree method. Please, give me the right example and could you add it to the documentation for everyone.
From: icestar [...] inbox.ru
On Fri Dec 10 16:11:58 2010, Alien wrote: Show quoted text
> Hello! > I've read the documentation on SQL::Translator::Schema::Index module and > couldn't understand how I should set the 'options' parameter to create > index with the HASH method. > I tried to set it like this: > > my $i1 = $table->add_index( > name => 'name', > fields => [ 'name' ], > options => ['using' => 'hash'], > ); > > but didn't get the expected result, index was created with B-tree method. > Please, give me the right example and could you add it to the > documentation for everyone.
I've looked into the code of SQL::Translator::Producer::PostgreSQL module and didn't find any ability to set using hash method. Am I right that it's not possible now to set index method?
From: sebastian [...] podjasek.pl
On Nd 12 Gru 2010, 17:32:04, Alien wrote: Show quoted text
> On Fri Dec 10 16:11:58 2010, Alien wrote:
> > Hello! > > I've read the documentation on SQL::Translator::Schema::Index module and > > couldn't understand how I should set the 'options' parameter to create > > index with the HASH method. > > I tried to set it like this: > > > > my $i1 = $table->add_index( > > name => 'name', > > fields => [ 'name' ], > > options => ['using' => 'hash'], > > ); > > > > but didn't get the expected result, index was created with B-tree method. > > Please, give me the right example and could you add it to the > > documentation for everyone.
> > > I've looked into the code of SQL::Translator::Producer::PostgreSQL > module and didn't find any ability to set using hash method. Am I right > that it's not possible now to set index method?
Just created a pull request for this issue, if you're still interested after that much time: https://github.com/dbsrgits/sql-translator/pull/51
I am closing this ticket as "resolved", since there was enough progress made on https://github.com/dbsrgits/sql-translator/pull/51. Please monitor the other ticket if interested in the resolution. Cheers!