Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\d+ table_name results in column c.relhasoids does not exist #464

Open
paulm17 opened this issue Dec 10, 2024 · 4 comments
Open

\d+ table_name results in column c.relhasoids does not exist #464

paulm17 opened this issue Dec 10, 2024 · 4 comments

Comments

@paulm17
Copy link

paulm17 commented Dec 10, 2024

Running 0.2.13.

In psql, when I do \d+ [table_name]. I get the following:

column c.relhasoids does not exist

Running psql version:

paul@Pauls-MBP-2 ~ % psql --version
psql (PostgreSQL) 16.2
@yacineb
Copy link
Contributor

yacineb commented Dec 12, 2024

@paulm17 have you tried with psql v16.4 ?

@paulm17
Copy link
Author

paulm17 commented Dec 12, 2024

@yacineb That's oddly specific. I'm using brew and I can't install another version except 17.2.

It's the same error with 17.2 as well.

@pmp-p
Copy link
Collaborator

pmp-p commented Dec 12, 2024

please, what socket gateway are you using, and full "psql" command line used to connect ?

@paulm17
Copy link
Author

paulm17 commented Dec 13, 2024

@pmp-p

what socket gateway are you using

Do you mean this?:

I had pg-lite running via node:cluster.

It was something like this (I'm pulling from an old comment, as I've now changed the config - see below).

import { join } from 'path';
import { createServer, LogLevel } from '@acme/pglite-server';
import { PGlite } from '@electric-sql/pglite';
import pg from 'pg';

(async () => {
  try {
    const db = new PGlite({ dataDir: join(import.meta.dirname, 'pglite-data') });
    await db.waitReady;

    // @ts-expect-error
    const pgServer = createServer(db);

    pgServer.listen(5432, async () => {
      const client = new pg.Client({
        host: 'localhost',
        port: 5432,
        database: 'postgres',
        user: 'postgres',
      });
      await client.connect();
    });
  } catch (err) {
    console.error('Server error:', err);
  }
})();

and full "psql" command line used to connect ?

psql -U postgres -h 127.0.0.1

Fyi, I've now moved to leinelissen/embedded-postgres as pglite was causing downstream issues wrt commonjs/esm.

I'll keep this issue open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants