question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: unknown function: pg_tablespace_location()

See original GitHub issue
  • Windows 10 / 1903

  • DBeaver 6.1.4/6.1.5

  • cockroach:v19.1.3

  • PostgreSQL JDBC Driver

  • Direct connection

After starting the application and opening any table the next error is showed:

  java.lang.reflect.InvocationTargetException
    SQL Error [42883]: ERROR: unknown function: pg_tablespace_location()
    SQL Error [42883]: ERROR: unknown function: pg_tablespace_location()
      ERROR: unknown function: pg_tablespace_location()
      ERROR: unknown function: pg_tablespace_location()

Version 6.0.5 don’t have this problem.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

12reactions
kenhkellycommented, Jun 23, 2020

This is still an issue

unknown function: pg_tablespace_location()

  java.lang.reflect.InvocationTargetException
    Internal driver error
    Internal driver error
      SQL Error [42883]: ERROR: unknown function: pg_tablespace_location()
      SQL Error [42883]: ERROR: unknown function: pg_tablespace_location()
        ERROR: unknown function: pg_tablespace_location()
        ERROR: unknown function: pg_tablespace_location()

DBeaver Version 7.1.0.202005311732 Cockroach 19.2.4

1reaction
giuliotripicommented, Jul 7, 2022

I encountered the same issue with DBeaver version 22.1.1.202206261508 OS: Ubuntu 22.04 LTS CockroachDB: v22.1.1 inside Docker Driver: org.postgresql.Driver

ERROR: unknown function: pg_tablespace_location()


  InvocationTargetException
  java.lang.reflect.InvocationTargetException
    Errore SQL [42883]: ERROR: unknown function: pg_tablespace_location()
    Errore SQL [42883]: ERROR: unknown function: pg_tablespace_location()
      ERROR: unknown function: pg_tablespace_location()
      ERROR: unknown function: pg_tablespace_location()

EDIT: it is just necessary to select cockroachdb as database type when creating a new connection

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR: unknown function: nameconcatoid() in ... - GitHub
Caused by: org.jooq.exception.DataAccessException: SQL [select r1.routine_schema, r1.routine_name, r1.specific_name, r1.routine_type, ...
Read more >
Error: unknown function () - Statalist
Error : unknown function ()​​ I am trying to compute tariff equivalent effects following the approach suggested in An Advanced Guide to Trade...
Read more >
What is Warzone's "unknown function" Fatal Error? How to fix
Warzone players have been hit by the "unknown function" Fatal Error, preventing them from playing the game at all after the June 3...
Read more >
Getting error 'unknown function' - Microsoft Community Hub
Let's say function name BIA_func and alias is BIA. when I call BIA_func() or BIA(), it says unknown function. But When I clicked...
Read more >
changelog · openGauss/openGauss-tools-ora2og - Gitee.com
Fix call of method close() on an undefined value. Thanks to Eric ... Fix unknown column HIGH_VALUE from *_TAB_PARTITIONS in Oracle 8i. Thanks...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found