Dblinks do not Work




 
Dblinks do not Work

Date Published: Mar 06,2025 Category: Planned_First_Fix_Release:Future_Reference_Learn; Product:Blackboard_Learn_SaaS; Version:X3900_108_0,X3900_110_0,X3900_112_0   Article No.: 000090353

Producto: Learn SaaS

Versión: SaaS

Paquetes de servicio: 3900.108.0, 3900.110.0, 3900.112.0

Descripción:

When running queries in the Postgres DDA database connection that have DBLINKs, the queries are throwing Password Authentication errors when trying to connect to other schemas.  This started after the upgrade to Postgres 16. 

Pasos para repetir:

  1. Using PGADMIN 4 connect to the user  CMS_doc schema "BBdoc" and run a query to connect to the same user's Learn Schema
  2. The query below has the password taken out

SELECT *

    FROM dblink('dbname=DDD user=ddauser1 password=########',

    'Select course_id, batch_uid from course_main')

    AS t1(course_id name, batch_uid text)

    WHERE course_id LIKE 'bbtest%';

 

Observed Behavior :

Connection to server on socket "/tmp/.s.PGSQL.5432" failed: FATAL:  password authentication failed for user "ddauser1" could not establish a connection.

ERROR:  could not establish connection.

 

Expected Behavior:

Connection to server should be successful.

 


Resolución/Solución alternativa:
Add "host=localhost" to the connection string. For instance:
 
 
SELECT *
    FROM dblink('dbname=BBxxxxxxxxxxxxx host=localhost user=ddauser1 password=########',
                'select course_id, batch_uid from course_main')
      AS t1(course_id name, batch_uid text)
    WHERE course_id LIKE 'bbtest%';

 



Versión de destino: Future Reference