Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Let psql process files with > 4,294,967,295 lines


  • From: David Fetter <david(at)fetter(dot)org>
  • To: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
  • Subject: Let psql process files with > 4,294,967,295 lines
  • Date: Sun, 30 Jul 2006 14:23:23 -0700
  • Message-id: <20060730212323.GU2654@fetter.org> <text/plain>

Folks,

I just ran across an issue where in psql, people can get the line
number in the file so long as it is under 2^32-1 lines long, but once
it gets larger than that, it's hosed.

This patch changes the data type from unsigned int to unsigned long
long, which is probably not the correct thing in order to get 64-bit
arithmetic, but I figure it's good enough to get a discussion started.

Cheers,
D
-- 
David Fetter <david(at)fetter(dot)org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!

Attachment: psql_long_file.diff
Description: Text document



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group