Re: [GENERAL] OIDs for jsonb type

2014-08-12 Thread Michael Paquier
On Wed, Aug 13, 2014 at 6:54 AM, Vik Fearing wrote: > On 08/12/2014 11:49 PM, Daniele Varrazzo wrote: >> Hello, >> >> I'm going to add support to the jsonb data type in psycopg2, in order >> to have the type behaving like json currently does >> (http://initd.org/psycopg/docs/extras.html#json-adapt

Re: [GENERAL] OIDs for jsonb type

2014-08-12 Thread Vik Fearing
On 08/12/2014 11:49 PM, Daniele Varrazzo wrote: > Hello, > > I'm going to add support to the jsonb data type in psycopg2, in order > to have the type behaving like json currently does > (http://initd.org/psycopg/docs/extras.html#json-adaptation). > > Is it correct that oid and arrayoid for the ty

[GENERAL] OIDs for jsonb type

2014-08-12 Thread Daniele Varrazzo
Hello, I'm going to add support to the jsonb data type in psycopg2, in order to have the type behaving like json currently does (http://initd.org/psycopg/docs/extras.html#json-adaptation). Is it correct that oid and arrayoid for the type will be 3802 and 3807 and that they won't change before the

Re: [GENERAL] oids on disk not in pg_class

2013-10-07 Thread Guy Rouillier
On 10/7/2013 6:46 PM, David Kerr wrote: On Mon, Oct 07, 2013 at 06:32:57PM -0400, Guy Rouillier wrote: - So, I ran "select pg_relation_filenode(614804)" and got no results. Any - suggestions on how I can uncover the identify of this node? - - Thanks much. You could try oid2name: http://www.post

Re: [GENERAL] oids on disk not in pg_class

2013-10-07 Thread David Kerr
On Mon, Oct 07, 2013 at 06:32:57PM -0400, Guy Rouillier wrote: - On 10/7/2013 5:58 PM, Steve Atkins wrote: - > - >On Oct 7, 2013, at 2:48 PM, Guy Rouillier - >wrote: - > - >>We have a fairly large (1 TB) database we put on all SSDs because - >>of a very high insert and update rate (38 million rows

Re: [GENERAL] oids on disk not in pg_class

2013-10-07 Thread Guy Rouillier
On 10/7/2013 5:58 PM, Steve Atkins wrote: On Oct 7, 2013, at 2:48 PM, Guy Rouillier wrote: We have a fairly large (1 TB) database we put on all SSDs because of a very high insert and update rate (38 million rows/day). As our business has grown, we've been running into space constraints, so w

Re: [GENERAL] oids on disk not in pg_class

2013-10-07 Thread Steve Atkins
On Oct 7, 2013, at 2:48 PM, Guy Rouillier wrote: > We have a fairly large (1 TB) database we put on all SSDs because of a very > high insert and update rate (). As our business has grown, we've been > running into space constraints, so we went looking for files we might be able > to delete.

[GENERAL] oids on disk not in pg_class

2013-10-07 Thread Guy Rouillier
We have a fairly large (1 TB) database we put on all SSDs because of a very high insert and update rate (). As our business has grown, we've been running into space constraints, so we went looking for files we might be able to delete. We found a large number (662 out of 1465 total ) and size

Re: [GENERAL] OIDs depending data -- how to dump/restore?

2010-03-14 Thread Adrian Klaver
On Sunday 14 March 2010 1:09:37 pm fka...@googlemail.com wrote: > Adrian Klaver: > > > AFAIK the dump/restore does not rebuild the original OID > > > values, so all relations built accross OIDs fail. > > > > > > (1) > > > Is there a way to keep the original OID values somehow? > > > > From here: >

Re: [GENERAL] OIDs depending data -- how to dump/restore?

2010-03-14 Thread fka...@googlemail.com
Adrian Klaver: > > AFAIK the dump/restore does not rebuild the original OID > > values, so all relations built accross OIDs fail. > > > > (1) > > Is there a way to keep the original OID values somehow? > > From here: > http://www.postgresql.org/docs/8.4/interactive/app-pgdump.html > > -o > --oid

Re: [GENERAL] OIDs depending data -- how to dump/restore?

2010-03-14 Thread Adrian Klaver
On Sunday 14 March 2010 9:21:06 am fka...@googlemail.com wrote: > Hi all, > > I have several databases here which I would like to update > from 8.2 to 8.4, which in turn requires a dump/restore. > > However, the databases are OIDs depending, so, some values > depend on OIDs in other tables. > > AFA

Re: [GENERAL] OIDs depending data -- how to dump/restore?

2010-03-14 Thread Raymond O'Donnell
On 14/03/2010 16:21, fka...@googlemail.com wrote: > (2) > If I need to go the long way and replace the OIDs with > SERIALs first, updating all relations to it etc: Would a > dump/restore then restore the original values in a SERIAL > column? So-called SERIAL types are actually just integer column

[GENERAL] OIDs depending data -- how to dump/restore?

2010-03-14 Thread fka...@googlemail.com
Hi all, I have several databases here which I would like to update from 8.2 to 8.4, which in turn requires a dump/restore. However, the databases are OIDs depending, so, some values depend on OIDs in other tables. AFAIK the dump/restore does not rebuild the original OID values, so all relations

Re: [GENERAL] oids

2008-02-11 Thread Alvaro Herrera
Bob Pawley wrote: > All of my tables are without oids. > > I have an application in which I drop, then recreate a table (to reset > serial numbers) and with an update on the new information I get an error > about a specific oid missing. This is a known problem. It was fixed in 8.3 -- you may

Re: [GENERAL] oids

2008-02-11 Thread Andrew Sullivan
On Mon, Feb 11, 2008 at 10:38:55AM -0800, Bob Pawley wrote: > All of my tables are without oids. > > I have an application in which I drop, then recreate a table (to reset > serial numbers) and with an update on the new information I get an error > about a specific oid missing. > > Any thoughts

Re: [GENERAL] oids

2008-02-11 Thread Bob Pawley
;Erik Jones" <[EMAIL PROTECTED]> To: "Bob Pawley" <[EMAIL PROTECTED]> Cc: "PostgreSQL" Sent: Monday, February 11, 2008 10:29 AM Subject: Re: [GENERAL] oids On Feb 11, 2008, at 12:15 PM, Bob Pawley wrote: I'm running Postgresql 8.2 on Windows. If I crea

Re: [GENERAL] oids

2008-02-11 Thread Erik Jones
On Feb 11, 2008, at 12:15 PM, Bob Pawley wrote: I'm running Postgresql 8.2 on Windows. If I create a table 'without oids' are oids still in use behind the scenes?? Yes and no. WITHOUT OIDS specifies that you don't want each row to get its own oid. You will often here of "a table's oid"

Re: [GENERAL] oids

2008-02-11 Thread Martijn van Oosterhout
On Mon, Feb 11, 2008 at 10:15:40AM -0800, Bob Pawley wrote: > I'm running Postgresql 8.2 on Windows. > > If I create a table 'without oids' are oids still in use behind the scenes?? Nope. Have a nice day, -- Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/ > Those who ma

[GENERAL] oids

2008-02-11 Thread Bob Pawley
I'm running Postgresql 8.2 on Windows. If I create a table 'without oids' are oids still in use behind the scenes?? Bob ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-24 Thread Richard Huxton
Purusothaman A wrote: Richard Huxton, In my system also its 2048 bytes chunk. The below output shows clearly that the last chunk differs in its length. You might have noticed in my previous mail that the string "\015\012\015\012" is missing some characters in SFRS2, SFRS1 and FASP_AVT database

Re: [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-24 Thread Purusothaman A
Richard Huxton, In my system also its 2048 bytes chunk. The below output shows clearly that the last chunk differs in its length. You might have noticed in my previous mail that the string "\015\012\015\012" is missing some characters in SFRS2, SFRS1 and FASP_AVT database outputs. Have a look a

Re: [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-23 Thread Richard Huxton
Purusothaman A wrote: Richard Huxton, Thanks for your detailed reply. I am maintaining various database of same kind in postgresql. Here I have shown various corrupted last line of output of select * from pg_largeobject where oid = xx; in 5 databases. I have used '\o e:\\filename.xml' befo

Re: [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-23 Thread Purusothaman A
Richard Huxton, Thanks for your detailed reply. I am maintaining various database of same kind in postgresql. Here I have shown various corrupted last line of output of select * from pg_largeobject where oid = xx; in 5 databases. I have used '\o e:\\filename.xml' before executing query and

Re: [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-23 Thread Richard Huxton
Purusothaman A wrote: Dear Richard Huxton, Thanks for your quick reply. only the first 3 values(HX, MASK, Rockey4ND) are file object's oid value. the other two are are not oid values. Umm - OK. Can I suggest perhaps having different tables for different types of data? I have shown origina

Re: [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-23 Thread Purusothaman A
Dear Richard Huxton, Thanks for your quick reply. only the first 3 values(HX, MASK, Rockey4ND) are file object's oid value. the other two are are not oid values. I have shown original output values displayed by postgresql client. I can explain more. 1. HX is a XML file. after downloading that

Re: [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-23 Thread Richard Huxton
Purusothaman A wrote: Thanks Richard Huxton for your reply. I use client side api for uploading and downloading files. Its not happening immediately. But when database grows with data, file object got corrupted. Yes, but *HOW* - is it a different file, length is different, what? My table st

Re: [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-23 Thread Purusothaman A
Thanks Richard Huxton for your reply. I use client side api for uploading and downloading files. Its not happening immediately. But when database grows with data, file object got corrupted. My table structure is as follows. Table "public.conf" Column | Type | Modif

Re: [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-16 Thread Richard Huxton
Purusothaman A wrote: Hi all, I am using Postgresql 8.2. 8.2.which? I am using client side api to upload/download files to/from postgresql using calls lo_export()/lo_import(); If I download a file from postgresql, few weeks later, files object's contents got damaged. I don't know why. Do

[GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-15 Thread Purusothaman A
Hi all, I am using Postgresql 8.2. I am using client side api to upload/download files to/from postgresql using calls lo_export()/lo_import(); If I download a file from postgresql, few weeks later, files object's contents got damaged. I don't know why. Do any of you have encountered same probl

Re: [GENERAL] oids and pg_class_oid_index constraint

2005-08-03 Thread Tom Lane
"Aaron Harsh" <[EMAIL PROTECTED]> writes: >> Tom Lane <[EMAIL PROTECTED]> 08/03/05 1:33 PM >>> >> OID wraparound would explain that ... > Fantastic. Will our plan ('set without oids', pg_dump, pg_restore) take care > of the problem? Only temporarily (ie, till the counter wraps around again). I

Re: [GENERAL] oids and pg_class_oid_index constraint

2005-08-03 Thread Aaron Harsh
> Tom Lane <[EMAIL PROTECTED]> 08/03/05 1:33 PM >>> > "Aaron Harsh" <[EMAIL PROTECTED]> writes: > > We've just recently started seeing sporadic constraint violations on system > > tables. For example: > > duplicate key violates unique constraint "pg_class_oid_index" [for > > Statement "CREATE

Re: [GENERAL] oids and pg_class_oid_index constraint violations

2005-08-03 Thread Tom Lane
"Aaron Harsh" <[EMAIL PROTECTED]> writes: > We've just recently started seeing sporadic constraint violations on system > tables. For example: > duplicate key violates unique constraint "pg_class_oid_index" [for > Statement "CREATE TEMPORARY TABLE... OID wraparound would explain that ... > a

[GENERAL] oids and pg_class_oid_index constraint violations

2005-08-03 Thread Aaron Harsh
We've just recently started seeing sporadic constraint violations on system tables. For example: duplicate key violates unique constraint "pg_class_oid_index" [for Statement "CREATE TEMPORARY TABLE... and duplicate key violates unique constraint "pg_toast_4292803267_index" [for Statement

Re: [GENERAL] OIDS

2005-06-20 Thread Neil Conway
Tino Wildenhain wrote: Google or your favourite search engine helps :-) http://www.postgresql.org/files/documentation/books/aw_pgsql/node71.html is among the first results. Unfortunately those docs are quite out of date. This page is better: http://developer.postgresql.org/docs/postgres/data

Re: [GENERAL] OIDS

2005-06-20 Thread Tino Wildenhain
Am Montag, den 20.06.2005, 11:57 -0400 schrieb Hrishikesh Deshmukh: > Hi All, > > I have 7.4.7 version, my question is what are OIDS user for? What can > one do with it! Google or your favourite search engine helps :-) http://www.postgresql.org/files/documentation/books/aw_pgsql/node71.html is

Re: [GENERAL] OIDS

2005-06-20 Thread WELTY, RICHARD
Hrishikesh Deshmukh writes: >I have 7.4.7 version, my question is what are OIDS user for? What can >one do with it! they're for internal use only, they may go away, so don't do anything with them, pretend that they aren't even there. richard ---(end of broadcast)

[GENERAL] OIDS

2005-06-20 Thread Hrishikesh Deshmukh
Hi All, I have 7.4.7 version, my question is what are OIDS user for? What can one do with it! Thanks, Hrishi ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [GENERAL] OIDS and its limitations

2004-01-11 Thread Sai Hertz And Control Systems
Hi Amir Khawaja , I have a rather trivial (I hope) question about OID types and PostgreSQL. Since PostgreSQL creates tables "WITH OIDS" by default, I'm wondering if it is bad practice to allow the default behaviour. For example, if I have a database with 60+ tables (all tables have their own P

Re: [GENERAL] OIDs

2001-07-11 Thread Peter Eisentraut
Kapil Tilwani writes: > I would like to make it impossible to be traced as to which record came in > first and which next, however, being sequential reveal that... How should I > ensure this? If you want cryptographic security you will need to use advanced algorithms to shuffle your data. In a

Re: [GENERAL] OIDs

2001-07-11 Thread Kapil Tilwani
ot; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, June 30, 2001 9:53 PM Subject: Re: [GENERAL] OIDs > Kapil Tilwani writes: > > > What happens when OIDs overflow? > > You might get spurious problems when you are altering your schema (unique > contraint viola

[GENERAL] OIDs in triggers

2001-02-22 Thread Max Rudensky
Hi folks, Here's what I have: create table contact ( contact_id serial, ... primary key (contact_id) ); create table customers ( customer_id serial, shipping_contact_id int4, billing_contact_id int4, ... primary key (customer_id) ); Well,