Hi all, Trivial question ... I'm using PostgreSQL for my auth db. I used the example CREATE TABLE statement in the config file, but now I find the fields are too short. I assume dovecot will be fine with 'text' type columns replacing the varchars? Or failing that, I can change the length of the varchar fields? Cheers, Richard
On 02/04/2019 05:42, Richard Hector via dovecot wrote:> I'm using PostgreSQL for my auth db. I used the example CREATE TABLE > statement in the config file, but now I find the fields are too short. I > assume dovecot will be fine with 'text' type columns replacing the > varchars? Or failing that, I can change the length of the varchar fields?ALTER TABLE $table ALTER COLUMN $column TYPE VARCHAR($newlenth); My tables are very different from the dovecot suggested tables and it works, just make sure the queries in dovecot-sql.conf correspond. My tables are different because they hold additional information for routing (the db is shared with exim).
Maybe Matching Threads
- To query two SQL tables for user verification over LMTP, should I use (a) two separate lookups? or (b) just one lookup with a boolean query?
- count sql failing with unknown table....
- Oracle SQL driver
- Foreign keys not showing!
- Temporary tables with Microsoft SQL?