Re: [HACKERS] Vague idea for allowing per-column locale

2001-08-13 Thread Tatsuo Ishii
> > Storing everything as Unicode is not a good idea, actually. First, > > Unicode tends to consume more storage space than other character > > sets. For example, UTF-8, one of the most commonly used encoding for > > Unicode consumes 3 bytes for Japanese characters, while SJIS only > > consumes 2

Re: [HACKERS] OID unsigned long long

2001-08-13 Thread Tom Lane
mlw <[EMAIL PROTECTED]> writes: > Aside from adding %llu to all the %u everywhere an OID is used in a > printf, and any other warnings, are there any other things I should be > specially concerned about? FE/BE protocol, a/k/a client/server interoperability. Flagging a database so that a backend

Re: [HACKERS] Vague idea for allowing per-column locale

2001-08-13 Thread Tim Allen
On Tue, 14 Aug 2001, Tatsuo Ishii wrote: > Storing everything as Unicode is not a good idea, actually. First, > Unicode tends to consume more storage space than other character > sets. For example, UTF-8, one of the most commonly used encoding for > Unicode consumes 3 bytes for Japanese character

Re: [HACKERS] OID unsigned long long

2001-08-13 Thread Larry Rosenman
* mlw <[EMAIL PROTECTED]> [010813 21:06]: > I am thinking about embarking on changing the typedef of OID to unsigned long > long. > > My plan is to make it conditional at configure time, i.e. > > #ifdef OID_ULONGLONG > typedef unsigned long long Oid; > #define OID_MAX ULLONG_MAX > #else > typed

[HACKERS] Bug List

2001-08-13 Thread Dwayne Miller
Is there a bug listing for PostgreSQL somewhere? ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

[HACKERS] OID unsigned long long

2001-08-13 Thread mlw
I am thinking about embarking on changing the typedef of OID to unsigned long long. My plan is to make it conditional at configure time, i.e. #ifdef OID_ULONGLONG typedef unsigned long long Oid; #define OID_MAX ULLONG_MAX #else typedef unsigned int Oid; #define OID_MAX UINT_MAX #endif Aside f

Re: [HACKERS] Surviving transaction-ID wraparound, take 2

2001-08-13 Thread Tom Lane
Horst Herb <[EMAIL PROTECTED]> writes: > On Tuesday 14 August 2001 02:25, you wrote: >> I still think that expanding transaction IDs (XIDs) to 8 bytes is no help. > But what about all of us who need to establish a true long term audit trail? > For us, still the most elegant solution would be a q

Re: [HACKERS] Surviving transaction-ID wraparound, take 2

2001-08-13 Thread Horst Herb
On Tuesday 14 August 2001 02:25, you wrote: > I still think that expanding transaction IDs (XIDs) to 8 bytes is no help. > Aside from portability and performance issues, allowing pg_log to grow > without bound just isn't gonna do. So, the name of the game is to recycle But what about all of us

Re: [HACKERS] Vague idea for allowing per-column locale

2001-08-13 Thread Tatsuo Ishii
> > It'd be even nicer if you could make a table that has, say, one column > > utf8 (or utf32 even), one column euc-jp and one column shift-jis, so > > that you could cache format conversions. > > This might be a nice thing to show off but I'm not sure about the > practical use. There's Unicode

Re: [HACKERS] PostGIS spatial extensions

2001-08-13 Thread Paul Ramsey
Dave Blasby wrote: > > The next question is, of course, what does 'semi-compliant' mean? Or, > more interesting, why would you want a semi-compliant database? For > most people's simple tasks, the built in geometry types are adequate. > Those interested in doing more complex tasks will probably

Re: [HACKERS] PostGIS spatial extensions

2001-08-13 Thread Dave Blasby
Tom Lane wrote: > > Dave Blasby <[EMAIL PROTECTED]> writes: > > [snip] Vivid Solutions (cf. > > http://www.vividsolutions.com/jts/jtshome.htm) will be releasing it > > under the LGPL. > > [snip] > > This leaves the option for creating a semi-compliant OpenGIS core inside > > PostgreSQL and having

Re: [HACKERS] PostGIS spatial extensions

2001-08-13 Thread Tom Lane
Dave Blasby <[EMAIL PROTECTED]> writes: > [snip] Vivid Solutions (cf. > http://www.vividsolutions.com/jts/jtshome.htm) will be releasing it > under the LGPL. > [snip] > This leaves the option for creating a semi-compliant OpenGIS core inside > PostgreSQL and having a LGPL add-on for the complex sp

Re: [HACKERS] Using textin/textout vs. scribbling around

2001-08-13 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > I am tempted to replace all attempts to build text data on your own (with > VARDATA, VARHDRSZ, etc.) with proper calls to textin/textout in all places > that can't claim to be truly internal (especially all contrib). Other than contrib, what places d

Re: [HACKERS] PostGIS spatial extensions

2001-08-13 Thread Dave Blasby
I think it would be great for PostgreSQL to be an 'OpenGIS Simple Feature Specification for SQL' compliant database with robust spatial operators right-out-of-the-box. Currently, PostGIS implements most of the OpenGIS specification. The unimplemented portions are the important; spatial operator

[HACKERS] Using textin/textout vs. scribbling around

2001-08-13 Thread Peter Eisentraut
I am tempted to replace all attempts to build text data on your own (with VARDATA, VARHDRSZ, etc.) with proper calls to textin/textout in all places that can't claim to be truly internal (especially all contrib). The background is that the internal format might change sometime when more locale fe

[HACKERS] Re: Use int8 for int4/int2 aggregate accumulators?

2001-08-13 Thread Tom Lane
I wrote: > 3. As a separate proposal, we could change COUNT()'s running counter > and output datatype from INT4 to INT8. This would make it a little > slower but effectively overflow-proof. > * Changing the output datatype of these operations --- especially COUNT > --- might affect or even break

[HACKERS] Re: To be 7.1.3 or not to be 7.1.3?

2001-08-13 Thread Hiroshi Inoue
Bruce Momjian wrote: > > > Tom Lane wrote: > > > > > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > > >> current list of 7.1.2 -> 7.1.3 changes. Bruce, are you going to handle > > > >> the documentation updates and release branding? > > > > > > > Yes, just tell me when to start. > > > > > > I do

Re: [HACKERS] To be 7.1.3 or not to be 7.1.3?

2001-08-13 Thread Bruce Momjian
> [EMAIL PROTECTED] (Trond Eivind =?iso-8859-1?q?Glomsr=F8d?=) writes: > > That's a couple of days ago now... anything happening? > > Bruce is evidently waiting on Hiroshi's confirmation that he's done > applying his back-patches. I believe he is, though; he did apply > what I thought was the pa

Re: [HACKERS] To be 7.1.3 or not to be 7.1.3?

2001-08-13 Thread Tom Lane
[EMAIL PROTECTED] (Trond Eivind =?iso-8859-1?q?Glomsr=F8d?=) writes: > That's a couple of days ago now... anything happening? Bruce is evidently waiting on Hiroshi's confirmation that he's done applying his back-patches. I believe he is, though; he did apply what I thought was the patch he had i

[HACKERS] Re: [PATCHES] PostGIS spatial extensions

2001-08-13 Thread Bruce Momjian
> Something I would like Dave to comment on is how cleanly we can split > the object/indexing from the OpenGIS spec'ed support tables and > reference systems. I am thinking about the canonical representation in > particular, which could be pretty ugly with the SRS id's hanging in > there for no pu

[HACKERS] PostGIS spatial extensions

2001-08-13 Thread Paul Ramsey
Tom Lane wrote: > > [ why is this thread hiding in -patches? It should be on -hackers or > -general, methinks. ] > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Let me suggest a solution. What if we took the part of the GIS code > > that duplicated our existing code (geometric types) and r

[HACKERS] Re: Rename config.h to pg_config.h?

2001-08-13 Thread Ian Lance Taylor
Tom Lane <[EMAIL PROTECTED]> writes: > Another bug report complaining of include file name conflicts came in > just now. The only solution I can see is to rename config.h to > something more project-specific. Should we do this, or keep ignoring > the problem? I would vote for renaming it. I'v

Re: [HACKERS] Re: AW: Re: OID wraparound: summary and proposal

2001-08-13 Thread Tom Lane
Neil Padgett <[EMAIL PROTECTED]> writes: > mlw wrote: >> The way I see it there are 4 options for the OID: > [snip] >> (2) Allow the ability to have tables without OIDs. This is a source of >> debate. > I think Tom Lane has already committed some patches to allow for this. > So, I think you shoul

Re: [HACKERS] Rename config.h to pg_config.h?

2001-08-13 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Another problem in all of this is that even if you hide the config.h > sufficiently, you'll end up including it anyway of course, and more likely > than not you will have a symbol clash with what the user wants to define > in his config.h file. This

Re: [HACKERS] Re: AW: Re: OID wraparound: summary and proposal

2001-08-13 Thread Neil Padgett
mlw wrote: > The way I see it there are 4 options for the OID: [snip] > (2) Allow the ability to have tables without OIDs. This is a source of > debate. I think Tom Lane has already committed some patches to allow for this. So, I think you should be able to try this from the latest CVS. (Tom?)

Re: [HACKERS] Perl,Postmaster and CPU question??

2001-08-13 Thread Doug McNaught
"gabriel" <[EMAIL PROTECTED]> writes: > hello all > > I have a perl script that read a text file and > insert the data in a table... > > but when this script is runing the usage of CPU by postmaster grows to > between 79 and 90 percent... And this is a problem because... ? Honestly, you're

Re: [HACKERS] Re: AW: Re: OID wraparound: summary and proposal

2001-08-13 Thread Doug McNaught
mlw <[EMAIL PROTECTED]> writes: > Somehow I guess I created a misunderstanding. I don't really care about > ROWID. I care that OID is a 32 bit number. The notion that each table could > have its own "OID" similar to a ROWID could be an intermediate solution. I > have flip-flopped a couple times a

Re: [HACKERS] Re: [PATCHES] Select parser at runtime

2001-08-13 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Things like VACUUM and ANALYZE, which you will have to keep unless you > want to implement an Oracle storage manager as well. ;-) Evidently Ian is just interested in a parser that could be used by Oracle-compatible applications, which'd not be invoki

Re: [HACKERS] Re: [PATCHES] Select parser at runtime

2001-08-13 Thread Peter Eisentraut
Ian Lance Taylor writes: > I'm not sure what you mean by managing grammar changes, although > perhaps I am reading too much into that. The Oracle grammar is set by > Oracle, and will not change even if the Postgres grammar changes. Things like VACUUM and ANALYZE, which you will have to keep unl

Re: [HACKERS] Re: [PATCHES] Select parser at runtime

2001-08-13 Thread Ian Lance Taylor
Tom Lane <[EMAIL PROTECTED]> writes: > Ian Lance Taylor <[EMAIL PROTECTED]> writes: > > ... most of the cost will be paid by the people who care about > > it. (Not all of the cost, because some communication will be required > > when the parse tree nodes are changed.) > > > Along these lines, I

Re: [HACKERS] Rename config.h to pg_config.h?

2001-08-13 Thread Peter Eisentraut
Tom Lane writes: > Another bug report complaining of include file name conflicts came in > just now. The only solution I can see is to rename config.h to > something more project-specific. Should we do this, or keep ignoring > the problem? Another problem in all of this is that even if you hid

Re: drop-in-ability (was: RE: [HACKERS] Re: [PATCHES] Select parser a t runtime )

2001-08-13 Thread Ian Lance Taylor
Alex Avriette <[EMAIL PROTECTED]> writes: > Dont beat yourself up, guys, over making postgres a drop-in replacement for > Oracle. The people that would benefit from actually "dropping in" postgres > into an Oracle install will have already eased the burden on themselves by > being responsible in

Re: [HACKERS] Rename config.h to pg_config.h?

2001-08-13 Thread Denis Perchine
On Monday 13 August 2001 23:26, Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > I vote for ignore. Don't tons of projects have a config.h file? > > That's exactly why there's a problem. We are presently part of the > problem, not part of the solution. The solution usually to hav

Re: [HACKERS] Surviving transaction-ID wraparound, take 2

2001-08-13 Thread Bruce Momjian
> 3. VACUUM will have the responsibility of replacing old normal XIDs with > FrozenXID. It will do this whenever a committed-good tuple has xmin less > than a cutoff XID. (There is no need to replace xmax, since if xmax is > committed good then the tuple itself will be removed.) The cutoff XID

[HACKERS] Re: PL/pgSQL bug?

2001-08-13 Thread Hiroshi Inoue
Tom Lane wrote: > > "Hiroshi Inoue" <[EMAIL PROTECTED]> writes: > > It's possible for a function to use a unique snapshot > > if there are only SELECT statements in the function > > but it's impossible if there are UPDATE/DELETE or > > SELECT .. FOR UPDATE statements etc. > > You are confusing N

Re: [HACKERS] Re: [PATCHES] Select parser at runtime

2001-08-13 Thread Ian Lance Taylor
Jan Wieck <[EMAIL PROTECTED]> writes: > If we want to have both parsers available at runtime we need > to replace the YY (case-insensitive) prefix in the generated > files per parser and call the right one from tcop. Now for > some flex/bison combo's at least the prefix switc

Re: [HACKERS] Rename config.h to pg_config.h?

2001-08-13 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I vote for ignore. Don't tons of projects have a config.h file? That's exactly why there's a problem. We are presently part of the problem, not part of the solution. regards, tom lane ---(end of broadc

[HACKERS] Re: PL/pgSQL bug?

2001-08-13 Thread Hiroshi Inoue
Tom Lane wrote: > > "Hiroshi Inoue" <[EMAIL PROTECTED]> writes: > > It's possible for a function to use a unique snapshot > > if there are only SELECT statements in the function > > but it's impossible if there are UPDATE/DELETE or > > SELECT .. FOR UPDATE statements etc. > > You are confusing N

[HACKERS] Surviving transaction-ID wraparound, take 2

2001-08-13 Thread Tom Lane
This is an attempt to flesh out the ideas of my earlier proposal (http://fts.postgresql.org/db/mw/msg.html?mid=67786) into a complete description of how things should work. It's still largely the same proposal, but I have adopted a couple of the ideas from the followup discussion --- notably Vadi

Re: [HACKERS] Rename config.h to pg_config.h?

2001-08-13 Thread Bruce Momjian
> Another bug report complaining of include file name conflicts came in > just now. The only solution I can see is to rename config.h to > something more project-specific. Should we do this, or keep ignoring > the problem? I vote for ignore. Don't tons of projects have a config.h file? --

Re: [HACKERS] PL/pgSQL bug?

2001-08-13 Thread Jan Wieck
Tom Lane wrote: > Jan Wieck <[EMAIL PROTECTED]> writes: > >> that plpgsql's handling of command-counter changes is broken, but it > >> does not follow that sprinkling the code with SetQuerySnapshot is wise. > > > Why do you blame PL/pgSQL for that? I don't see a single > > reference t

[HACKERS] Perl,Postmaster and CPU question??

2001-08-13 Thread gabriel
hello all I have a perl script that read a text file and insert the data in a table... but when this script is runing the usage of CPU by postmaster grows to between 79 and 90 percent... there's something to do about it? thanks... ---(end of broadcast)--

Re: [HACKERS] To be 7.1.3 or not to be 7.1.3?

2001-08-13 Thread Bruce Momjian
> Tom Lane wrote: > > > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > >> current list of 7.1.2 -> 7.1.3 changes. Bruce, are you going to handle > > >> the documentation updates and release branding? > > > > > Yes, just tell me when to start. > > > > I don't know of any reason to wait... anyo

[HACKERS] Rename config.h to pg_config.h?

2001-08-13 Thread Tom Lane
Another bug report complaining of include file name conflicts came in just now. The only solution I can see is to rename config.h to something more project-specific. Should we do this, or keep ignoring the problem? regards, tom lane ---(end of br

Re: [HACKERS] Re: [PATCHES] Select parser at runtime

2001-08-13 Thread Tom Lane
Jan Wieck <[EMAIL PROTECTED]> writes: > files per parser and call the right one from tcop. Now for > some flex/bison combo's at least the prefix switches (to have > something different than YY) don't work reliable. There will > be some global YY-objects left, causing linkag

drop-in-ability (was: RE: [HACKERS] Re: [PATCHES] Select parser at runtime )

2001-08-13 Thread Alex Avriette
I sent the list a message a little while ago about what I do with postgres. I thought, after all this discussion, that it might be important to send a further message to the list indicating why I chose not to use Oracle. I'm going to go out on a limb and say that I have one of the largest postgre

[HACKERS] Re: AW: Re: OID wraparound: summary and proposal

2001-08-13 Thread mlw
Somehow I guess I created a misunderstanding. I don't really care about ROWID. I care that OID is a 32 bit number. The notion that each table could have its own "OID" similar to a ROWID could be an intermediate solution. I have flip-flopped a couple times about whether or not the OID being able t

Re: [HACKERS] PL/pgSQL bug?

2001-08-13 Thread Tom Lane
Jan Wieck <[EMAIL PROTECTED]> writes: >> that plpgsql's handling of command-counter changes is broken, but it >> does not follow that sprinkling the code with SetQuerySnapshot is wise. > Why do you blame PL/pgSQL for that? I don't see a single > reference to the command counter from

Re: [HACKERS] PL/pgSQL bug?

2001-08-13 Thread Jan Wieck
Tom Lane wrote: > "Hiroshi Inoue" <[EMAIL PROTECTED]> writes: > > It's possible for a function to use a unique snapshot > > if there are only SELECT statements in the function > > but it's impossible if there are UPDATE/DELETE or > > SELECT .. FOR UPDATE statements etc. > > You are confusing snaps

Re: [HACKERS] Re: [PATCHES] Select parser at runtime

2001-08-13 Thread Tom Lane
Ian Lance Taylor <[EMAIL PROTECTED]> writes: > ... most of the cost will be paid by the people who care about > it. (Not all of the cost, because some communication will be required > when the parse tree nodes are changed.) > Along these lines, I don't think Bruce's suggestion of modifications >

Re: [HACKERS] PL/pgSQL bug?

2001-08-13 Thread Tom Lane
"Hiroshi Inoue" <[EMAIL PROTECTED]> writes: > It's possible for a function to use a unique snapshot > if there are only SELECT statements in the function > but it's impossible if there are UPDATE/DELETE or > SELECT .. FOR UPDATE statements etc. You are confusing snapshots (which determine visibil

Re: [HACKERS] Re: [PATCHES] Select parser at runtime

2001-08-13 Thread Jan Wieck
Ian Lance Taylor wrote: > Along these lines, I don't think Bruce's suggestion of modifications > to the Postgres gram.y is a good idea, because it causes the Oracle > parser to add an ongoing cost to the Postgres parser. Bruce, Tom and I discussed these issues during our time in San Di

AW: [HACKERS] Re: OID wraparound: summary and proposal

2001-08-13 Thread Zeugswetter Andreas SB SD
> Some other databases have the notion of a ROWID which uniquely identifies a row > within a table. OID can be used for that, but it means if you use it, you must > limit the size of your whole database system. Imho that is getting it all wrong. OID is *not* a suitable substitute for other db's

Re: [HACKERS] example program bug?

2001-08-13 Thread Tom Lane
>> Included is a example program appears in our docs (libpq.sgml). If you're going to do any work on that example, how about transforming it into something useful, ie, a more realistic example of using NOTIFY. It should be using a select() to wait for input, not a sleep() loop. As for the clean

Re: [HACKERS] Re: [PATCHES] Select parser at runtime

2001-08-13 Thread Justin Clift
Hi Vince, The point I'll make is this : People who presently have installations on Oracle will be more inclined to test/trial PostgreSQL if they know the learning curve is much less than say, migrating to DB2 would be (or some other database without specific Oracle-transition compatibilities).

Re: [HACKERS] example program bug?

2001-08-13 Thread Gavin Sherry
On Mon, 13 Aug 2001, Tatsuo Ishii wrote: > Included is a example program appears in our docs (libpq.sgml). > As you can see, the very last part of the program: > > PQfinish(conn); > > return 0; > > never execute. Should we remove them? Most compilers should be able to detect this and

RE: [HACKERS] PL/pgSQL bug?

2001-08-13 Thread Hiroshi Inoue
Tatsuo Ishii wrote: > > > > One way to make the results equivalent is to compute a new QuerySnapshot > > > for each SPI query. Quite aside from the cost of doing so, I do not > > > think it makes sense, considering that the previous QuerySnapshot must > > > be restored when we return from the fun