psqlodbc что это за программа
Подключение к источнику данных PostgreSQL (мастер импорта и экспорта SQL Server)
В этом разделе показано, как подключаться к источникам данных PostgreSQL со страницы Выбор источника данных или Выбор назначения в мастере импорта и экспорта SQL Server.
Подробные требования и необходимые условия для подключения к базе данных PostgreSQL выходят за рамки этой статьи Майкрософт. В ней предполагается, что у вас уже установлено клиентское программное обеспечение PostgreSQL и вы можете успешно подключиться к целевой базе данных PostgreSQL. Для получения дополнительных сведений обратитесь к администратору базы данных PostgreSQL или к документации по PostgreSQL.
Получение драйвера ODBC для PostgreSQL
Установка драйвера ODBC с помощью построителя стека
Запустите построитель стека, чтобы добавить драйвер ODBC для PostgreSQL (psqlODBC) в вашу установку PostgreSQL.
Скачивание последней версии драйвера ODBC
Или скачайте установщик Windows для последней версии драйвера ODBC для PostgreSQL (psqlODBC) прямо с этого FTP-сайта — https://www.postgresql.org/ftp/odbc/versions/msi/. Извлеките содержимое ZIP-файла и запустите файл MSI.
Подключение к PostgreSQL с помощью драйвера ODBC для PostgreSQL (psqlODBC)
Указываемые параметры (драйвер ODBC для PostgreSQL)
Параметры подключения для этого поставщика данных и драйвера ODBC одинаковы независимо от того, является ли PostgreSQL источником или назначением. Таким образом, на страницах Выбор источника данных и Выбор назначения мастера отображаются одинаковые параметры.
Чтобы подключиться к PostgreSQL с помощью драйвера ODBC для PostgreSQL, соберите строку подключения, используя указанные ниже параметры и их значения. Полный формат строки подключения приведен после списка параметров.
Вы можете получить помощь в построении строки подключения. Кроме того, вместо указания строки подключения вы можете предоставить существующее имя DSN (имя источника данных) или создать новое. Дополнительные сведения об этих возможностях см. в разделе Подключение к источнику данных ODBC.
Драйвер
Имя драйвера ODBC — PostgreSQL ODBC Driver(UNICODE) или PostgreSQL ODBC Driver(ANSI).
Server
Имя сервера PostgreSQL.
порт.
Порт, используемый для подключения к серверу PostgreSQL.
База данных
Имя базы данных PostgreSQL.
Uid и Pwd
Uid (идентификатор пользователя) и Pwd (пароль) для подключения.
Формат строки подключения
Ниже приведен формат типичной строки подключения.
Ввод строки подключения
Введите строку подключения в поле ConnectionString либо введите имя DSN в поле Dsn на странице Выбор источника данных или Выбор назначения. После того как вы введете строку подключения, мастер проанализирует ее и отобразит отдельные свойства и их значения в списке.
В приведенном ниже примере используется следующая строка подключения:
Ниже показан экран, который появляется после ввода строки подключения.
Другие поставщики данных и дополнительные сведения
Сведения о подключении к PostgreSQL с помощью поставщика данных, не представленного в этом списке, см. в разделе Строки подключения PostgreSQL. Этот сторонний сайт также содержит дополнительные сведения о поставщиках данных и параметрах подключения, описанных на этой странице.
psqlODBC is the official PostgreSQL ODBC Driver. It is released under the Library General Public Licence, or LGPL.
Downloads are available in source and binary formats at the PostgreSQL downloads site
psqlODBC Documentation
The following documents contain various bits of useful information. Please send any additional documentation, or report errors/omissions to pgsql-odbc@postgresql.org
psqlODBC HOWTOs
The following HOWTOs have been contributed by various people. If you wish to add to the collection, please send your contribution to pgsql-odbc@postgresql.org
psqlODBC Development
psqlODBC is developed and supported through the pgsql-odbc@postgresql.org mailing list.
You can browse the source code at the psqlODBC git repository at git.postgresql.org. The source for this website is at the psqlodbc-www git repository
A backup of the old CVS repository can be found here.
psqlODBC History
The source code for this driver was originally adopted from version 0.20 of PostODBC. The authors at that time were Christian Czezatke and Dan McGuirk. Later it was maintained by Julie Ann Case.
As part of a commercial research project, the developers at Insight Distributions System overhauled the driver. Their goal was to make the driver commercially viable. In keeping with the spirit with which the original source was acquired, Insight published their work at their website. Some time later and after some discussion with members of the PostgreSQL organization, psqlODBC was adapted as the part of the PostgreSQL source distribution. The driver continued to be maintained by Byron Nikolaidis, the developer at Insight who overhauled the driver for some time.
The driver is currently maintained by a number of contributors to the PostgreSQL project.
Acknowledgements
OpenSSL
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/).
MIT Kerberos
This product includes Kerberos software developed by the Massachusetts Institute of Technology (http://web.mit.edu/kerberos/):
Copyright 1992-2004 by the Massachusetts Institute of Technology. All rights reserved.
Что такое psqlodbc-setup.exe? Это безопасно или вирус? Как удалить или исправить это
Что такое psqlodbc-setup.exe?
psqlodbc-setup.exe это исполняемый файл, который является частью psqlODBC Программа, разработанная Группа глобального развития PostgreSQL, Программное обеспечение обычно о 4.5 MB по размеру.
Psqlodbc-setup.exe безопасный или это вирус или вредоносное ПО?
Первое, что поможет вам определить, является ли тот или иной файл законным процессом Windows или вирусом, это местоположение самого исполняемого файла. Например, такой процесс, как psqlodbc-setup.exe, должен запускаться из, а не из другого места.
Если статус процесса «Проверенная подписывающая сторона» указан как «Невозможно проверить», вам следует взглянуть на процесс. Не все хорошие процессы Windows имеют метку проверенной подписи, но ни один из плохих.
Наиболее важные факты о psqlodbc-setup.exe:
Если у вас возникли какие-либо трудности с этим исполняемым файлом, перед удалением psqlodbc-setup.exe вы должны определить, заслуживает ли он доверия. Для этого найдите этот процесс в диспетчере задач.
Найдите его местоположение (оно должно быть в C: \ Program Files \ psqlodbc \ 0803 \ docs) и сравните размер и т. Д. С приведенными выше фактами.
Если вы подозреваете, что можете быть заражены вирусом, вы должны немедленно попытаться это исправить. Чтобы удалить вирус psqlodbc-setup.exe, необходимо Загрузите и установите приложение полной безопасности, например Malwarebytes., Обратите внимание, что не все инструменты могут обнаружить все типы вредоносных программ, поэтому вам может потребоваться попробовать несколько вариантов, прежде чем вы добьетесь успеха.
Могу ли я удалить или удалить psqlodbc-setup.exe?
Не следует удалять безопасный исполняемый файл без уважительной причины, так как это может повлиять на производительность любых связанных программ, использующих этот файл. Не забывайте регулярно обновлять программное обеспечение и программы, чтобы избежать будущих проблем, вызванных поврежденными файлами. Что касается проблем с функциональностью программного обеспечения, проверяйте обновления драйверов и программного обеспечения чаще, чтобы избежать или вообще не возникало таких проблем.
Распространенные сообщения об ошибках в psqlodbc-setup.exe
Наиболее распространенные ошибки psqlodbc-setup.exe, которые могут возникнуть:
• «Ошибка приложения psqlodbc-setup.exe».
• «Ошибка psqlodbc-setup.exe».
• «psqlodbc-setup.exe столкнулся с проблемой и должен быть закрыт. Приносим извинения за неудобства».
• «psqlodbc-setup.exe не является допустимым приложением Win32».
• «psqlodbc-setup.exe не запущен».
• «psqlodbc-setup.exe не найден».
• «Не удается найти psqlodbc-setup.exe».
• «Ошибка запуска программы: psqlodbc-setup.exe.»
• «Неверный путь к приложению: psqlodbc-setup.exe.»
Как исправить psqlodbc-setup.exe
Если у вас возникла более серьезная проблема, постарайтесь запомнить последнее, что вы сделали, или последнее, что вы установили перед проблемой. Использовать resmon Команда для определения процессов, вызывающих вашу проблему. Даже в случае серьезных проблем вместо переустановки Windows вы должны попытаться восстановить вашу установку или, в случае Windows 8, выполнив команду DISM.exe / Online / Очистка-изображение / Восстановить здоровье, Это позволяет восстановить операционную систему без потери данных.
Чтобы помочь вам проанализировать процесс psqlodbc-setup.exe на вашем компьютере, вам могут пригодиться следующие программы: Менеджер задач безопасности отображает все запущенные задачи Windows, включая встроенные скрытые процессы, такие как мониторинг клавиатуры и браузера или записи автозапуска. Единый рейтинг риска безопасности указывает на вероятность того, что это шпионское ПО, вредоносное ПО или потенциальный троянский конь. Это антивирус обнаруживает и удаляет со своего жесткого диска шпионское и рекламное ПО, трояны, кейлоггеры, вредоносное ПО и трекеры.
Мы рекомендуем вам попробовать это новое программное обеспечение, которое исправляет компьютерные ошибки, защищает их от вредоносных программ и оптимизирует производительность вашего ПК. Этот новый инструмент исправляет широкий спектр компьютерных ошибок, защищает от таких вещей, как потеря файлов, вредоносное ПО и сбои оборудования.
Загрузите или переустановите psqlodbc-setup.exe
Вход в музей Мадам Тюссо не рекомендуется загружать файлы замены exe с любых сайтов загрузки, так как они могут сами содержать вирусы и т. д. Если вам нужно скачать или переустановить psqlodbc-setup.exe, то мы рекомендуем переустановить основное приложение, связанное с ним psqlODBC.
Информация об операционной системе
Ошибки psqlodbc setup.exe могут появляться в любых из нижеперечисленных операционных систем Microsoft Windows:
Подключение к PostgreSQL из 1С
СУБД PostgreSQL весьма популярна среди пользователей, и причина тому — достойное качество при полной бесплатности. Высокая популярность привела к тому, что задачи на тему прямого доступа к базе PostgreSQL из 1С встречаются достаточно часто. Именно о том, как этот доступ организовать и поговорим ниже.
Подготовка
В начале нужно сказать, что все испытания проводились на ОС Windows 7 (64-bit) и Windows 10 (64-bit), а подключения производились к серверу PostgreSQL (64-bit) 9.4.2-1.1C.
Первое, что нам потребуется это установленный драйвер psqlODBC. Установить его можно либо при помощи приложения Stack Builder (которое устанавливается вместе с PostgreSQL):
Либо посетив страничку, на которой представлено множество версий нашего драйвера:
Важно! Устанавливать нужно именно psqlODBC (32 bit).
С драйвером psqlODBC (64 bit) мне не удалось подключиться к базе данных ни одним способом, ни в одной ОС. Весьма вероятно, что причина этого в моих кривых руках, но что есть, то и пишу.
Так или иначе, после установки правильной версии драйвера у нас есть несколько способов получения данных.
Подключение внешнего источника данных
Подключение базы PostgreSQL в качестве внешнего источника данных является простым и наглядным. Создаем новый внешний источник данных и добавить новую таблицу:
Затем указываем строку подключения примерно такова вида:
Driver=
;Server=host;Port=port;Database=db_name;Uid=user;Pwd=password;STMT=utf8
И в результате получаем список таблиц:
Отмечу, что при создании внешнего источника данных у меня не получилось использовать пользовательские источники данных, о которых ниже.
Подключение при помощи ADODB
Подключение к базе PostgreSQL и выполнение различных запросов при помощи библиотеки ADOdb выглядит приблизительно так:
При этом есть возможность использовать пользовательский источник данных, который нужно сначала создать. Сделать это можно при помощи приложения ODBC Data Sources (32 бита), которое находится в панели управления (а в Windows 10 в папке «Администрирование» на панели управления). Важно использовать именно 32-х битную версию, так как каждая версия видит только «свои» драйверы. Если же, по какой-либо причине, на панели управления нет этого приложения, то его можно запустить напрямую, оно находится по адресу \Windows\SysWOW64\odbcad32.exe.
Сам процесс создания пользовательского источника данных прост:
После того как источник создан, протестирован и сохранен можно использовать строку подключения следующего вида:
Еще раз напомню, что вариант строки подключения с пользовательским источником данных не сработал (у меня, по крайней мере) при подключении базы PostgreSQL как внешний источник данных.
На этом все, надеюсь данная статья Вам помогла.
Если Вы нашли ошибку или неточность, пожалуйста, выделите фрагмент текста и нажмите Ctrl+Enter.
psqlODBC FAQ
Mailing lists may be useful when problems do not solve with these.
Discussion of PostgreSQL’s ODBC interface.
The most recent version of this document can be viewed at https://odbc.postgresql.org/faq.html.
1) General
2) Basics
3) Connections
4) Advanced
5) Borland Applications
6) Microsoft Applications
1) General
1.1) How do I submit an idea for a new feature or even a patch?
1.2) Do I even need to compile the driver to use it?
Probably not. If you are using Windows, all you really need to do is download and run the Full distribution.
1.3) How do I install the driver?
The easiest way to install the driver is to get the Full distribution. Just download, unzip and run the setup program program. The installation is a standard Windows Installer package that will guide you through the process. For future upgrades, the MSI distribution can be used. This is considerably smaller as it does not include the Windows Installer redistributable which you only need install once. The second option is to compile the driver yourself. If you are using this driver on a unix platform, this is currently your only option.
1.4) What operating systems will the driver run on?
The psqlODBC executable is written and compiled to run on 32 bit Wintel platform. This includes Windows 95, 98, ME, NT, 2000 and XP. 16 bit applications are capable of using the 32 bit driver but only on these platforms.
We do not distribute binaries for Unix. The source code, however has been ported to compile under Unix. There are two driver managers available for Unix, UnixODBC and iODBC.
1.5) I’ve seen other PostgreSQL ODBC drivers out there. Which one is the right one?
This one! This is the official PostgreSQL ODBC driver.
1.6) How do I report a bug or other problems?
You can send mail to pgsql-odbc@postgresql.org When you do, however, you should attach the following:
Before posting however, please ensure you are running the latest version of psqlODBC.
2) Basics
2.1) How do I setup a datasource?
For Windows, use the ODBC Administrator in Control Panel (in some releases it may be found in the Administrative Tools folder. Here you can add, modify, or delete data sources.
2.2) What’s the difference between a File DSN, System DSN, and User DSN?
System DSN’s and User DSN’s differ only in who can access them on the system. A File DSN, however, is not really a datasource. It is a file that contains all the connection parameters used to connect directly to an ODBC driver.
2.3) How do I access more advanced driver and/or datasource options?
First, select your favorite datasource to configure. Then in the «PostgreSQL Driver Setup» dialog, select under «Options (Advanced)» either the Driver button or Datasource button. This will bring up another dialog box which contains options you can configure. Refer to the Configuration Help for information on all these options.
2.4) Where can I discover more information about ODBC errors?
The ODBC driver has an option to log all direct communication (queries, updates, etc.) with the backend as well as error messages and notices in the commlog file. In addition, it now also logs any ODBC connection and statement errors in this file with detailed information. This is good for applications that give misleading, little, or no descriptive information when something goes wrong (VisData is a good example).
PostgreSQL Unicode is a Unicode enabled driver that will work well with modern versions of applications such as Microsoft Access, with character from a huge range of languages. You should use this driver with PostgreSQL databases encoded as ‘UNICODE’ (more precisely known as ‘UTF-8’ in PostgreSQL).
PostgreSQL ANSI is an ANSI driver which is also able to handle some multibyte character sets such as EUC_JP, BIG5 and Shift-JIS. This driver should also be used with databases encoded using any of the LATIN charactersets.
Note that some applications (notably Borland BDE) do not work properly with Unicode ODBC drivers. In this case, you must use the ANSI driver.
3) Connections
3.1) Why do I get a message like «Failed to authenticate client as Postgres user using unknown authentication type:be_recvauth: unrecognized message type: 65536» when I try to connect to a datasource?
This message comes from the PostgreSQL backend, most likely when there is a protocol mismatch between the ODBC driver and the backend. For example, if you are using PostgreSQL 6.2 as the backend and try to use the ODBC driver without correctly setting the protocol, this error will occur. You must check the «6.2 protocol» advanced datasource option in the ODBC driver configuration dialog.
Note: If you’re still running 6.x these days, you really, really, really should upgrade to 8.x as soon as possible!!
3.2) Why do I get a message like «User authentication failed»?
Verify that the database you are trying to connect to exists and is accessible by you. Also, see the above question in regards to user name and password authentication.
3.3) What do I need to do to establish a connection to a database?
ODBC Connection Checklist:
3.4) Does psqlODBC support encrypted login for connections?
Yes. psqlODBC supports «md5» encrypted logins, but not «crypt» logins. Keep in mind that after login, ODBC sends all queries in plain text, so all you’re protecting is your password. Also, support for md5 logins was added in late 2001, so if you have an older version of psqlODBC you may need to update it.
Note: As of version 08.01.002, psqlODBC now supports SSL encrypted connections.
4) Advanced
4.1) Why do characters with umlauts or accents, or other non-ASCII characters show up in some applications as ‘?’
4.2) What data types does the driver support?
The driver provides full support for all PostgreSQL standard data types. These are: bool, int2, int4, int8, float4, float8, date, time, abstime, datetime, timestamp, char, varchar, and text.
There is partial support for all other data types. Examples of these: point, circle, box and arrays. String support only is provided for these non-standard types. In other words, they are returned as SQL_VARCHAR and can be displayed and updated like any other data type. The resulting behavior will probably vary some with each application and data type.
In the case of int4[] and MS Access 97 it does an effective job. The array can be displayed and updated cleanly. Arithmetic is a little tricky. MS Access complains about «t.a[1]» in the query builder. It does not like the syntax and never sends it to the backend. The work around is to choose the SQL Pass-thru option. This will allow you to build expressions like «t.a[0] * t.a[1]». The hassle is that every time you run the query in Access 97 it prompts you with a database connection dialog.
MS Excel in combination w/ MS Query may provide a better solution. It passes every query through. I try to stay away from the more exotic types if I know I am going to expose them to the public.
Some of the operators are missing in some releases of PostgreSQL (anyone remember which?) so in order to use row versioning, you must overload the int4eq function for use with the xid type. Also, you need to create an operator to compare xid to int4. You must do this for each database you want to use this feature on. This will probably not be necessary in PostgreSQL 6.4 since it will be added. Here are the details:
4.4) Can I use large objects or OLE?
Large objects are mapped to LONGVARBINARY in the driver to allow storing things like OLE objects in Microsoft Access. Multiple SQLPutData and SQLGetData calls are usually used to send and retrieve these objects. The driver creates a new large object and simply inserts its ‘identifier’ into the respective table. However, since PostgreSQL uses an ‘Oid’ to identify a Large Object, it is necessary to create a new PostgreSQL type to be able to discriminate between an ordinary Oid and a Large Object Oid. Until this new type becomes an official part of PostgreSQL, it must be added into the desired database and looked up for each connection. The type used in the driver is simply called «lo» and here is the command used to create it:
Once this is done, simply use the new ‘lo’ type to define columns in that database. When the driver sees an ‘lo’ type, it will handle it as SQL_LONGVARBINARY.
Another important note is that this new type is lacking in functionality. It will not cleanup after itself on updates and deletes, thus leaving orphans around and using up extra disk space. And currently, PostgreSQL does not support the vacuuming of large objects.
It would not be too difficult to write a interim stand-alone cleanup process to run at some interval on the server. It is only a matter of searching pg_attribute for lo data type columns and building a list of lo’s by querying each table that contains lo’s. Then compare this list with with the xinv.* in pg_class. The xinv.* with out a pointer are orphans and should be dropped.
Hopefully in the future, a real large object data type will be available as a base type. But for now, it sure is fun to stick a Word document, Visio document, or AVI of a dancing baby into a database column, even if you will fill up your server’s hard disk after a while!
4.5) Why does the PostgreSQL backend complain about running out of memory when some I browse tables with primary keys?
The Jet Database Engine (used by Access) and others can use «keysets» to access records. Depending on how many parts are in the key, performance can range from slow to crashing of the backend. Here is a keyset query using 10 rows (the typical keyset amount):
The question marks are replaced with the key values
Prior to PostgreSQL 6.4, this was a major problem. But there are at least 2 fixes in place for this as of 6.4. One of the fixes is called KSQO (Keyset Query Optimization). As of 6.4, the driver now turns this on by default, although this can be changed in the Advanced Driver options settings.
4.6) How do I get my application to recognize primary keys?
SQLPrimaryKeys() is implemented in the driver. The driver queries the system tables in search of a unique index named with the using «