Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2061312

Summary: postgresql-server-13 doesn't work with postgresql-odbc-10
Product: Red Hat Enterprise Linux 8 Reporter: Dushyant <duge>
Component: postgresql-odbcAssignee: Filip Januš <fjanus>
Status: CLOSED CURRENTRELEASE QA Contact: Vaclav Danek <vdanek>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.5CC: databases-maint, fjanus, gnaik, hhorak, kwalker, mmuzila, smahanga, vdanek
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: postgresql-odbc-10.03.0000-3.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2080179 (view as bug list) Environment:
Last Closed: 2023-02-20 10:55:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2080179    

Description Dushyant 2022-03-07 11:22:12 UTC
Description of problem:
postgresql ODBC driver version 10 is not fully functional with PostgreSQL version 13.

Version-Release number of selected component (if applicable):

postgresql-odbc-10
postgresql-server-13

How reproducible:

Steps to Reproduce:

On Red Hat Enterprise Linux release 8.5 (Ootpa)

1) install PostgreSQL 13, unixODBC, PostgreSQL (13), PostgreSQL  ODBC driver (10) from your RHEL repositories

# dnf module enable postgresql:13
# dnf install postgresql-server postgresql-contrib
# dnf install postgresql-odbc
# postgresql-setup initdb
# systemctl enable postgresql

2) pg_hba.conf and add following line at the beginning:
~~~
host    all             postgres        127.0.0.1/32            password
~~~

3) # systemctl start postgresql.service

4) Add a connection to /etc/odbc.ini:

[test]
Driver              = PostgreSQL
Database            = postgres
Servername          = 127.0.0.1
UserName            =
Password            =
Port                = 5432
Protocol            = 7.4-2
ReadOnly            = No
RowVersioning       = No
ShowSystemTables    = No
ByteaAsLongVarBinary= 1
BoolsAsChar         = 1
TextAsLongVarchar   = 1
UseServerSidePrepare= 1
UpdatableCursors    = 1
UniqueIndex         = 1
Fetch               = 1000
ConnSettings        =

5) # su - postgres

set a password for "postgres" role:

[postgres@rhel8 ~]$ psql
psql (13.5)
Type "help" for help.

postgres=# ALTER USER postgres WITH PASSWORD 'mypassword';

6) Trying the functionality:

[postgres@rhel8 ~]$ isql -v test postgres mypassword

SQL> create table t (a int );
SQLRowCount returns -1
SQL> select * from t;
+------------+
| a          |
+------------+
+------------+
SQLRowCount returns 0
SQL> help t
[S1000]Error while executing the query
[ISQL]ERROR: Could not SQLColumns

Actual results:

The above is a malfunction

In RHEL8 postgres-server is distributed in several versions in appstream channel. But postgresql ODBC driver has only one version ie. postgresql-odbc-10.03.0000 version.

Expected results:

The commands should execute without any malfunction.

Comment 17 Red Hat Bugzilla 2023-09-18 04:33:06 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days