Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

pgr_getTableName fails when current user is not owner of a table's schema

Abierto
#241 12 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
postgresql

Línea de trabajo

The function pgr_getTableName is likely in the SQL source files (look for .sql files defining functions). Examine its query on information_schema.schemata and compare with pg_catalog.pg_namespace for broader schema visibility. Test by creating a non-owner role with SELECT privileges and verifying the fix returns schema and table names correctly.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Deprecation Function/Internal Functionality Request

When the current role accessing the database is not the owner of the schema where a table lives, pgr_getTableName returns null, null, even though the table exists, and is readable to the role.

I believe this is because pgr_getTableName reads from information_schema.schemata, which only lists schemas actually owned by the current role, not all schemas accessible.

example: user1 is the owner of a database, and thus is owner of the public schema. user2 has read access to the public schema.

as user1:

db_name=# select * from pgr_getTableName('edge_table');
sname  |   tname    
--------+------------
public | edge_table
(1 row)

as user2:

db_name=> select * from pgr_getTableName('edge_table');
sname | tname 
-------+-------
         | 
(1 row)
Lenguaje dominante
C++
Estrellas
1.4k
Forks
397
Merge medio
2 d 2 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pgRouting/pgrouting

Todos los issues de pgRouting/pgrouting

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.