node.js - Sequelize hangs up when creating tables -
im using node.js , sequelize library create database. database postgresql. running on server postgresql 9.4.5 works. running on server postgresql 9.5.2 doesn't.
im trying debug , see node hangs while , @ end gets timeout:
unhandled rejection sequelizeconnectionerror: connect etimedout
what trying do? has create few tables. there around 20 tables. creates first 3 tables. each time table created, reason, sequelize run statement:
select i.relname name, ix.indisprimary primary, ix.indisunique unique, ix.indkey indkey, array_agg(a.attnum) column_indexes, array_agg(a.attname) column_names, pg_get_indexdef(ix.indexrelid) definition pg_class t, pg_class i, pg_index ix, pg_attribute t.oid = ix.indrelid , i.oid = ix.indexrelid , a.attrelid = t.oid , t.relkind = 'r' , t.relname = 'tablename' group i.relname, ix.indexrelid, ix.indisprimary, ix.indisunique, ix.indkey order i.relname;
always, after thirth table has been created, hangs until timeout.
if login in server database installed , run same statement, there no problem. query returns row:
where should look? not find in postgres-log either. have no clue.
Comments
Post a Comment