[GENERAL] pg_migrator not setting values of sequences?

2009-07-13 Thread Tilmann Singer
I tried the latest pg_migrator (http://pgfoundry.org/frs/download.php/2291/pg_migrator-8.4.tgz) to migrate a database from an 8.3.7 to an 8.4.0 cluster. It finished with a success message, and the schema and all tables seem to have been migrated correctly. However, all of the sequences were at the

[GENERAL] tsearch2 dictionary that indexes substrings?

2007-04-20 Thread Tilmann Singer
Hi, In this http://archive.netbsd.se/?ml=pgsql-hackers&a=2006-10&t=2475028 thread Teodor Sigaev describes a way to make tsearch2 index substrings of words: > Brain storm method: > > Develop a dictionary which returns all substring for lexeme, for > example for word foobar it will be 'foobar foob

Re: [GENERAL] tsearch2 dictionary that indexes substrings?

2007-04-20 Thread Tilmann Singer
* Listmail <[EMAIL PROTECTED]> [20070420 11:25]: > You want trigram based search. > ie. > > postgresql -> 'pos', 'ost', 'stg', 'tgr', 'gre', 'res', > 'esq', 'sql' > > searching for 'gresq' is searching for 'gre' and 'res' and > 'esq' which is good friends w

[GENERAL] tsearch2 dictionary that indexes substrings?

2007-04-20 Thread Tilmann Singer
Hi, In this http://archive.netbsd.se/?ml=pgsql-hackers&a=2006-10&t=2475028 thread Teodor Sigaev describes a way to make tsearch2 index substrings of words: > Brain storm method: > > Develop a dictionary which returns all substring for lexeme, for > example for word foobar it will be 'foobar foob

Re: [GENERAL] tsearch2 dictionary that indexes substrings?

2007-04-23 Thread Tilmann Singer
* Oleg Bartunov <[EMAIL PROTECTED]> [20070420 11:32]: > >If I understand it correctly such a dictionary would require to write > >a custom C component - is that correct? Or could I get away with > >writing a plpgsql function that does the above and hooking that > >somehow into the tsearch2 config?

Re: [GENERAL] Audit-trail engine: getting the application's layer user_id

2007-04-25 Thread Tilmann Singer
* Manuel Sugawara <[EMAIL PROTECTED]> [20070425 00:17]: > I solved the problem using a C program and keeping all the information > in the database, that means, users, passwords and ``sessions''. Each > time a user opens a session the system register it in a table that > looks like: This looks very

Re: [GENERAL] Audit-trail engine: getting the application's layer user_id

2007-04-25 Thread Tilmann Singer
* Manuel Sugawara <[EMAIL PROTECTED]> [20070425 17:14]: > > So the view will reference the original table and not the temporary > > table. Is there a way to achieve this kind of transaction local > > setting? A transaction based solution would give more security in a > > situation where a web app s

Re: [GENERAL] Audit-trail engine: getting the application's layer user_id

2007-04-25 Thread Tilmann Singer
* Manuel Sugawara <[EMAIL PROTECTED]> [20070425 17:57]: > I think you can use a plpgsql function with execute. For instance, if > the name of your temp table is current_user_id the function will be > something like: > > create function get_current_user_id() returns int as $$ > declare > v_rec re

Re: [GENERAL] Audit-trail engine: getting the application's layer user_id

2007-05-09 Thread Tilmann Singer
* Marcelo de Moraes Serpa <[EMAIL PROTECTED]> [20070509 21:14]: > Just replying to say a big thank you ... > I compiled the C extension with the > code you , did all the necessary logic and finally solved it. Thank you very > much for your help! I second that! I finally settled with the simpler

Re: [GENERAL] Geographic data sources, queries and questions

2007-05-24 Thread Tilmann Singer
* Chuck D. <[EMAIL PROTECTED]> [20070524 01:26]: > 2) I've spent an accumulated total of around a month and a half trying to > consolidate geographic name data from several free sources on the net and > realize this isn't the best use of my time and errors will be had. Does > anyone know of a r