Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
运行额外查询的postgresql odbc驱动程序_Postgresql_Postgresql 9.1_Postgresql 9.3 - Fatal编程技术网

运行额外查询的postgresql odbc驱动程序

运行额外查询的postgresql odbc驱动程序,postgresql,postgresql-9.1,postgresql-9.3,Postgresql,Postgresql 9.1,Postgresql 9.3,我使用PostgreSQL作为我的后端数据库。我正在通过PostgreSQL odbc DriverInCode x64从我的应用程序运行查询。当我看到PostgreSQL日志时,它实际上运行了两个查询 我执行的查询: 2015-04-03 16:54:24 IST00000LOG: statement: select n.nspname, c.relname, a.attname, a.atttypid, t.typname, a.attnum, a.attlen, a.atttypmod

我使用PostgreSQL作为我的后端数据库。我正在通过PostgreSQL odbc DriverInCode x64从我的应用程序运行查询。当我看到PostgreSQL日志时,它实际上运行了两个查询

我执行的查询:

2015-04-03 16:54:24 IST00000LOG:  statement: 
select n.nspname, c.relname, a.attname, a.atttypid, t.typname, a.attnum, a.attlen, a.atttypmod, a.attnotnull, c.relhasrules, c.relkind, c.oid, pg_get_expr(d.adbin, d.adrelid), case t.typtype when 'd' then t.typbasetype else 0 end, t.typtypmod, c.relhasoids from (((pg_catalog.pg_class c inner join pg_catalog.pg_namespace n on n.oid = c.relnamespace and c.oid = 274738) inner join pg_catalog.pg_attribute a on (not a.attisdropped) and a.attnum > 0 and a.attrelid = c.oid) inner join pg_catalog.pg_type t on t.oid = a.atttypid) left outer join pg_attrdef d on a.atthasdef and d.adrelid = a.attrelid and d.adnum = a.attnum order by n.nspname, c.relname, attnum
我正在使用带有postgres odbc驱动程序9.03.02.00的postgresql 9.3.5

对于每个查询,我每次都运行运行第二个查询的PostgreSQL

如何禁用第二个查询的运行


提前感谢

第二个查询很可能是由您的框架生成的,它用于获取有关结果集的元数据。更有可能自动转换数据。为了停止它的生成,您需要咨询您正在使用的框架,看看是否有任何方法可以停止它。但是请注意,如果可以禁用它,它很有可能会破坏某些东西,因为您将不再拥有关于结果集的元数据