Public bug reported:

having installed packages postgresql, postgresql-client, nodejs and
libnode-pg on a Ubuntu 12.04 LTS.

# su postgres
~ psql

works fine and I can trigger SQL statements such as "SELECT * FROM
pg_roles".

Running following script as user postgres, however, "fails" due to set
error inside callback provided to pg.connect():

---
#!/usr/bin/node

var pg = require( "pg" );
pg.connect( "/var/run/postgresql", function( error, link )
{
        console.error( error );
} );
---

message on stderr is:

{ length: 126,
  name: 'error',
  severity: 'FATAL',
  code: '08P01',
  message: 'invalid startup packet layout: expected terminator as last byte',
  detail: undefined,
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  file: 'postmaster.c',
  line: '1773',
  routine: 'ProcessStartupPacket' }

** Affects: node-postgres (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1039559

Title:
  invalid startup packet layout: expected terminator as last byte

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/node-postgres/+bug/1039559/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to