Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-31 Thread Kevin Brown
Tom Lane wrote: Peter Eisentraut [EMAIL PROTECTED] writes: ... So the application already knows that foo is the table and a is the column. So if the application wants to know about details on the column a, it can execute SELECT whatever FROM pg_attribute, pg_class WHERE relname = 'foo'

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-20 Thread Jeff Davis
On Monday 10 March 2003 10:51 am, Tom Lane wrote: * XML support? If we do anything, I'd want some extensible solution to allowing multiple query-result output formats from the backend, not an XML-specific hack. For one thing, that would allow the actual appearance of any XML support to

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-19 Thread Brian Bruns
On 16 Mar 2003, Hannu Krosing wrote: Tom Lane kirjutas R, 14.03.2003 kell 19:15: Greg Stark [EMAIL PROTECTED] writes: So, just to throw out a wild idea: If you're talking about making large changes to the on-the-wire protocol. Have you considered using an existing database protocol?

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-18 Thread Christof Petig
Peter Eisentraut wrote: I don't get it. Say I execute SELECT a, b, c FROM foo;. In order to update that query, the application needs to create some update statement, say UPDATE foo SET a = entered_value;. So the application already knows that foo is the table and a is the column. So if the

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-17 Thread Tom Lane
Peter Eisentraut [EMAIL PROTECTED] writes: ... So the application already knows that foo is the table and a is the column. So if the application wants to know about details on the column a, it can execute SELECT whatever FROM pg_attribute, pg_class WHERE relname = 'foo' AND attname = 'a';

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-17 Thread Peter Eisentraut
Tom Lane writes: Yes, Dave did answer --- basically, he's happy with not providing any column identity data in the cases where it's not obvious what the answer should be. And in particular he doesn't want the mechanism to drill down into view definitions (which is less than obviously right

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-16 Thread Hannu Krosing
Tom Lane kirjutas R, 14.03.2003 kell 19:15: Greg Stark [EMAIL PROTECTED] writes: So, just to throw out a wild idea: If you're talking about making large changes to the on-the-wire protocol. Have you considered using an existing database protocol? Yeah, I have. Didn't look promising ---

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-15 Thread Emmanuel Charpentier
Justin Clift wrote: [ ... ] The problem Dave is suggesting this as a first attempt at a solution for is that with ODBC, a frontend (i.e. OpenOffice) asks the ODBC driver which columns are NULLable, etc. And the ODBC driver is getting the info wrong, then passing back the incorrect info. And

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-14 Thread Christof Petig
Tom Lane wrote: Barry Lind [EMAIL PROTECTED] writes: The describe request is generally only done once even though you may do multiple fetchs (unlike todays protocol which includes the describe information on every fetch, even if you are fetching one row at a time). I'm less than excited about

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-14 Thread Christof Petig
Christof Petig wrote: If you know you are never interested in metadata, you can omit the describe flag at all. [null indication and type specification is of course always needed to access the actual data] More exactly they are sent separately: null indication is per row 'D'/'B' and type

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-14 Thread Zeugswetter Andreas SB SD
for that, we get what exactly? Fetching one row at a time is *guaranteed* to be inefficient. The correct response if that bothers you is to fetch multiple rows at a time, not to make a less robust protocol. I don't feel strongly either way on this one, but IIRC the SQL standard for

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-14 Thread Greg Stark
So, just to throw out a wild idea: If you're talking about making large changes to the on-the-wire protocol. Have you considered using an existing database protocol? This would avoid having to reinvent the wheel every time postgres implements a new feature like prepared queries, bind arrays, or

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-14 Thread Tom Lane
Greg Stark [EMAIL PROTECTED] writes: So, just to throw out a wild idea: If you're talking about making large changes to the on-the-wire protocol. Have you considered using an existing database protocol? Yeah, I have. Didn't look promising --- there's no percentage unless we're 100%

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-14 Thread Christopher Browne
A long time ago, in a galaxy far, far away, [EMAIL PROTECTED] (Greg Stark) wrote: So, just to throw out a wild idea: If you're talking about making large changes to the on-the-wire protocol. Have you considered using an existing database protocol? This would avoid having to reinvent the wheel

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-14 Thread Peter Eisentraut
Tom Lane writes: So are you voting against adding any attribute-ID info to RowDescription? While I'm not that thrilled with it myself, it seems relatively harmless as long as we can keep the overhead down. I'm okay with attrelid/attnum, but would gripe about including more than that. At

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-14 Thread Tom Lane
Peter Eisentraut [EMAIL PROTECTED] writes: At the beginning of this thread you raised a number of points where the identity of the column of origin is not well-defined. I haven't seen an answer to that. Yes, Dave did answer --- basically, he's happy with not providing any column identity data

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Greg Stark
Tom Lane [EMAIL PROTECTED] writes: Barry Lind [EMAIL PROTECTED] writes: 4) Protocol level support of PREPARE. In jdbc and most other interfaces, there is support for parameterized SQL. If you want to take advantage of the performance benefits of reusing parsed plans you have to

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Christof Petig
Barry Lind wrote: 3) Protocol level support for CURSORs. It would be nice if cursor support was done at the protocol level and not as a SQL command. I want to second this proposal. Currently I avoid using cursors in my programs since a) they need much more logic and _string_concatenation_ to be

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Barry Lind
Tom Lane wrote: Barry Lind [EMAIL PROTECTED] writes: One addition I would personally like to see (it comes up in my apps code) is the ability to detect wheather the server is big endian or little endian. When using binary cursors this is necessary in order to read int data. Actually, my

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Tom Lane
Zeugswetter Andreas SB SD [EMAIL PROTECTED] writes: Also doesn't the planner/executor already have all needed info available ? Not directly, and not necessarily in the form that the client would want it in (eg, converting type OID to type name isn't free). I don't care to load either the

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Tom Lane
Barry Lind [EMAIL PROTECTED] writes: AFAICS the only context where this could make sense is binary transmission of parameters for a previously-prepared statement. We do have all the pieces for that on the roadmap. Actually it is the select of binary data that I was refering to. Are you

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Andrew Dunstan
Couldn't it be done optionally, so the clients that want the info pay the price and those that don't want it get the speed and lower bandwidth? Just a thought andrew - Original Message - From: Tom Lane [EMAIL PROTECTED] Zeugswetter Andreas SB SD [EMAIL PROTECTED] writes: Also

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Barry Lind
Tom Lane wrote: Barry Lind [EMAIL PROTECTED] writes: AFAICS the only context where this could make sense is binary transmission of parameters for a previously-prepared statement. We do have all the pieces for that on the roadmap. Actually it is the select of binary data that I was refering to.

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Tom Lane
Barry Lind [EMAIL PROTECTED] writes: Tom Lane wrote: See binary cursors ... Generally that is not an option. It either requires users to code to postgresql specific sql syntax, or requires the driver to do it magically for them. Fair enough. I don't see anything much wrong with a GUC

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Barry Lind
Tom Lane wrote: Barry Lind [EMAIL PROTECTED] writes: Tom Lane wrote: See binary cursors ... Generally that is not an option. It either requires users to code to postgresql specific sql syntax, or requires the driver to do it magically for them. Fair enough. I don't see anything much

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Dave Page
-Original Message- From: Hiroshi Inoue [mailto:[EMAIL PROTECTED] Sent: 13 March 2003 10:04 To: Dave Page Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [HACKERS] Roadmap for FE/BE protocol redesign Dave Page

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Dave Page
-Original Message- From: Zeugswetter Andreas SB SD [mailto:[EMAIL PROTECTED] Sent: 13 March 2003 17:07 To: Hiroshi Inoue; Dave Page Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [HACKERS] Roadmap for FE/BE protocol redesign If this where

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Dave Page
It's rumoured that Hiroshi Inoue once said: Tom Lane wrote: Dave Page [EMAIL PROTECTED] writes: No, but with them we can avoid cluttering the wire protocol with fields for all this, and the JDBC required data. With 2 numeric columns (attrelid, attnum), any application/interface can query

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Hiroshi Inoue
Dave Page wrote: It's rumoured that Hiroshi Inoue once said: Tom Lane wrote: "Dave Page" [EMAIL PROTECTED] writes: No, but with them we can avoid cluttering the wire protocol with fields for all this, and the JDBC required data. With 2 numeric columns

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Christopher Kings-Lynne
Obviously there is cost, but doing a lookup only on demand, has got to be cheaper in the long run than including the entire column definition in the message whether it's wanted or not? So if there are 100 fields, should we ask the backend the column name 100 times ? No, you do a single

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Hannu Krosing
Hiroshi Inoue kirjutas N, 13.03.2003 kell 12:03: Dave Page wrote: Does looking up by the catalog keys take no cost ? Obviously there is cost, but doing a lookup only on demand, has got to be cheaper in the long run than including the entire column definition in the message whether

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Hiroshi Inoue
] Roadmap for FE/BE protocol redesign Dave Page wrote: It's rumoured that Hiroshi Inoue once said: Does looking up by the catalog keys take no cost ? Obviously there is cost, but doing a lookup only on demand, has got to be cheaper in the long run than including

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Hiroshi Inoue
Tom Lane wrote: "Dave Page" [EMAIL PROTECTED] writes: It's rumoured that Hiroshi Inoue once said: Does looking up by the catalog keys take no cost ? Obviously there is cost, but doing a lookup only on demand, has got to be cheaper in the long run than including

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Tom Lane
Hiroshi Inoue [EMAIL PROTECTED] writes: Hmm as for PREPAREd statements, it seems much better to implement functions which returns fields info for the statement than relying on such a protocol level change. Well, we're changing the protocol anyway for other purposes, so the extra burden of a

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-13 Thread Bruce Momjian
Marc G. Fournier wrote: On Tue, 11 Mar 2003, Bruce Momjian wrote: Six months would be June 1 beta, so maybe that is still a good target. We released v7.3 just before Dec 1st, so six months is May 1st, not June 1st ... Six months is June 1 --- December (1), January-May (5) == 6. --

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-12 Thread Barry Lind
Dave Page wrote: I don't know about JDBC, but ODBC could use it, and it would save a heck of a lot of pain in apps like pgAdmin that need to figure out if a column in an arbitrary resultset might be updateable. At the moment there is some nasty code in pgAdmin II that attempts to parse the SQL

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-12 Thread Zeugswetter Andreas SB SD
I'm still unclear on exactly what your needs are. In the first place, are you expecting to obtain data from arbitrary SELECT statements, or only from statements of the form SELECT * FROM single_table? You've also been confusing as to whether you want transparency of views (ie, does a

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-12 Thread Dave Cramer
: -Original Message- From: Zeugswetter Andreas SB SD [mailto:[EMAIL PROTECTED] Sent: 12 March 2003 09:50 To: Hiroshi Inoue; Tom Lane Cc: Bruce Momjian; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [HACKERS] Roadmap for FE/BE protocol redesign The ODBC function SQLDescribeCol

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-12 Thread Tom Lane
Barry Lind [EMAIL PROTECTED] writes: One addition I would personally like to see (it comes up in my apps code) is the ability to detect wheather the server is big endian or little endian. When using binary cursors this is necessary in order to read int data. Actually, my hope is to

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-12 Thread Merlin Moncure
Peter Eisentraut writes: Dave Page writes: Well what I *really* need has been made quite clear in other posts, but, when I say resultset in the same sentence as pgAdmin, I'm referring to the ability to enter an arbitrary SQL query, have the results displayed in a grid, which can then

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-12 Thread Christopher Kings-Lynne
One addition I would personally like to see (it comes up in my apps code) is the ability to detect wheather the server is big endian or little endian. When using binary cursors this is necessary in order to read int data. Actually, my hope is to eliminate that business entirely by

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-12 Thread Hannu Krosing
Tom Lane kirjutas K, 12.03.2003 kell 18:19: Barry Lind [EMAIL PROTECTED] writes: One addition I would personally like to see (it comes up in my apps code) is the ability to detect wheather the server is big endian or little endian. When using binary cursors this is necessary in order to

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-12 Thread Sean Chittenden
One addition I would personally like to see (it comes up in my apps code) is the ability to detect wheather the server is big endian or little endian. When using binary cursors this is necessary in order to read int data. Actually, my hope is to eliminate that business entirely by

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-12 Thread Mike Mascari
Hannu Krosing wrote: Tom Lane kirjutas K, 12.03.2003 kell 18:19: Actually, my hope is to eliminate that business entirely by standardizing the on-the-wire representation for binary data; note the reference to send/receive routines in the original message. For integer data this is simple enough:

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-12 Thread Hiroshi Inoue
Peter Eisentraut wrote: Dave Page writes: Well what I *really* need has been made quite clear in other posts, but, when I say resultset in the same sentence as pgAdmin, I'm referring to the ability to enter an arbitrary SQL query, have the results displayed in a

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-12 Thread Christopher Kings-Lynne
I suggested using names to Tom for this reason, but he preferred to use attrelid/attnum. Oh, and what happenned to the attlognum idea? If something that needs it is going to be implemented the column should probably be added now and used instead of attnum. Wll, it'd be nice, but I

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-12 Thread Dave Cramer
On Wed, 2003-03-12 at 20:45, Hiroshi Inoue wrote: Peter Eisentraut wrote: Dave Page writes: Well what I *really* need has been made quite clear in other posts, but, when I say resultset in the same sentence as pgAdmin, I'm referring to the ability to enter an arbitrary SQL

Re: Beta schedule (was [HACKERS] Roadmap for FE/BE protocol redesign)

2003-03-11 Thread Bruce Momjian
I agree, let's not wait for specific features. The issue was whether we had enough significant features done for a release --- I didn't think we did, so I am saying, let's get more features, rather than let's get feature X. As we fill in missing features, there will be less must-have features

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-11 Thread Merlin Moncure
Justin Clift wrote: confidentiality level of the Win32/PITR patches at present, but I'd guess there would be at least a few solid volunteers willing to contribute to the Win32/PITR ports if we asked for people to step forwards. I'd like to help. I've been following the list for several

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-11 Thread Tom Lane
Hiroshi Inoue [EMAIL PROTECTED] writes: What the driver has suffered from is to get the fields' info of a query result or the parameters' info of a statement. The info is needed even before the execution of the statement(i.e it's only prepared). Hm. Are you saying that you would like PREPARE

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-11 Thread Andrew Dunstan
If there's a build of this available we'd love to test it in a major project we're working on. The project is currently using the 7.2 build that was made available, but we had to work around the lack of schema support by kludging table names as namespace_table, so a 7.3 build would be great, with

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-11 Thread Bruce Momjian
Sure, Neil Conway updated Jan's patches for 7.3. It is in: ftp://candle.pha.pa.us/pub/postgresql/mypatches/ --- Merlin Moncure wrote: Justin Clift wrote: confidentiality level of the Win32/PITR patches at

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-11 Thread Kevin Brown
Tom Lane wrote: Dave Page [EMAIL PROTECTED] writes: Well, what would constitute a complete spec? I think I've told the group what I would like to be able to do, what unanswered questions can I (hopefully :-) ) answer? I'm still unclear on exactly what your needs are. In the first place,

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-11 Thread Marc G. Fournier
On Mon, 10 Mar 2003, Tom Lane wrote: Justin Clift [EMAIL PROTECTED] writes: The scenario that's appealing to me the most is this for the next release: PostgreSQL 8.0 + Includes PITR and the Win32 port If the folks doing those things can get done in time, great. I'm even willing to push

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-11 Thread Bruce Momjian
Marc G. Fournier wrote: So, what should we do? Should we go another month or two and just wait until we have enough must-have features? While not waiting on specific features, it _is_ waiting for something to warrant a release. I guess the big question is whether we release on a

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-11 Thread Tom Lane
Kevin Brown [EMAIL PROTECTED] writes: doing more or less what other database vendors have done in response to these underspecified issues is probably a sensible course of action when there's no other obviously better answer. A good point, indeed. Who wants to do the legwork to check up on

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-11 Thread Dave Page
It's rumoured that Tom Lane once said: Dave Page [EMAIL PROTECTED] writes: What about the addition of pg_attribute.attrelid pg_attribute.attname/attnum in RowDesription messages to identify the underlying attribute (where appropriate)? Well, we can talk about it, but I still think that any

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-11 Thread Dave Page
It's rumoured that Bruce Momjian once said: Tom Lane wrote: Dave Page [EMAIL PROTECTED] writes: What about the addition of pg_attribute.attrelid pg_attribute.attname/attnum in RowDesription messages to identify the underlying attribute (where appropriate)? Well, we can talk about it,

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-11 Thread Dave Page
It's rumoured that Bruce Momjian once said: Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: I was willing to add a hack to enable default column labels to be table.column --- that seemed like the least obtrusive. Most of the definitional issues still apply: which table name are you

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-11 Thread Hiroshi Inoue
Tom Lane wrote: I think such compatibility is sufficient. We can mention in the releases notes that they should upgrade there servers before their clients. I'd be really happy if we can make that stick. There's enough work to be done here without trying to

[HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Tom Lane
This is an attempt to lay out a road map for updating the frontend/backend protocol in 7.4. I don't at this point want to get into details on any one of the TODO items, just get consensus that this is the set of tasks to be tackled. Are there any areas that I've missed (that require protocol

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Justin Clift
Tom Lane wrote: snip One way to tamp down expectations of client backwards compatibility would be to call the release 8.0 instead of 7.4 ;-) Comments? Actually, I've been thinking about the numbering of the next PostgreSQL version for a few days now. The scenario that's appealing to me the most

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Rod Taylor
+ Not sure where Satoshi is up to with his 2 phase commit proposal, but that might make sense to incorporate into a wire protocol revision. From memory he received funding to work on it, so it might be coming along nicely. One should note that his protocol changes had absolutely nothing

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Tom Lane
Justin Clift [EMAIL PROTECTED] writes: The scenario that's appealing to me the most is this for the next release: PostgreSQL 8.0 + Includes PITR and the Win32 port If the folks doing those things can get done in time, great. I'm even willing to push out the release schedule (now, not later)

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Rod Taylor
* Backend's ReadyForQuery message (Z message) should carry an indication of current transaction status (idle/in transaction/in aborted transaction) so that frontend need not guess at state. Perhaps also indicate autocommit status. (Is there anything else that frontends would Really Like To

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Tom Lane
Rod Taylor [EMAIL PROTECTED] writes: I'd be tempted to make a startup packet that will allow libpq to revert back to old protocols easily enough for the future so that we can do=20 incremental changes to the protocol. We already have that: you send a startup packet with a version less than the

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Rod Taylor
On Mon, 2003-03-10 at 14:30, Tom Lane wrote: Rod Taylor [EMAIL PROTECTED] writes: I'd be tempted to make a startup packet that will allow libpq to revert back to old protocols easily enough for the future so that we can do=20 incremental changes to the protocol. We already have that: you

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Merlin Moncure
Justin Clift wrote: PostgreSQL 8.0 ** + Includes PITR and the Win32 port *snip* I feel like the upcoming 7.4 is the most important release since the introduction of toast, maybe even since the introduction of the sql language. I wholeheartedly agree with your proposition.

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Tom Lane
Rod Taylor [EMAIL PROTECTED] writes: We already have that: you send a startup packet with a version less than the latest, and the backend speaks that version to you. Yes, but that requires you know the backend is less than the latest. As opposed to knowing what? You send the version number

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Ashley Cambrell
Tom Lane wrote: This is an attempt to lay out a road map for updating the frontend/backend protocol in 7.4. I don't at this point want to get into details on any one of the TODO items, just get consensus that this is the set of tasks to be tackled. Are there any areas that I've missed (that

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Rod Taylor
On Mon, 2003-03-10 at 14:52, Tom Lane wrote: Rod Taylor [EMAIL PROTECTED] writes: We already have that: you send a startup packet with a version less than the latest, and the backend speaks that version to you. Yes, but that requires you know the backend is less than the latest. As

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Neil Conway
On Mon, 2003-03-10 at 16:37, Ashley Cambrell wrote: This would also get around the problem of getting values from newly inserted rows (eg PKs) without resorting to OIDs. That's not a problem: ensure that the newly inserted row has a SERIAL column, and use currval(). Cheers, Neil -- Neil

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Ashley Cambrell
Neil Conway wrote: On Mon, 2003-03-10 at 16:37, Ashley Cambrell wrote: This would also get around the problem of getting values from newly inserted rows (eg PKs) without resorting to OIDs. That's not a problem: ensure that the newly inserted row has a SERIAL column,

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Tom Lane
Neil Conway [EMAIL PROTECTED] writes: On Mon, 2003-03-10 at 16:37, Ashley Cambrell wrote: This would also get around the problem of getting values from newly inserted rows (eg PKs) without resorting to OIDs. That's not a problem: ensure that the newly inserted row has a SERIAL column, and

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Bruce Momjian
Tom Lane wrote: Dave Page [EMAIL PROTECTED] writes: What about the addition of pg_attribute.attrelid pg_attribute.attname/attnum in RowDesription messages to identify the underlying attribute (where appropriate)? Well, we can talk about it, but I still think that any frontend that

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: I was willing to add a hack to enable default column labels to be table.column --- that seemed like the least obtrusive. Most of the definitional issues still apply: which table name are you going to insert, and under what conditions? If we're revising

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Justin Clift
Bruce Momjian wrote: snip So, what should we do? Should we go another month or two and just wait until we have enough must-have features? While not waiting on specific features, it _is_ waiting for something to warrant a release. I guess the big question is whether we release on a

Re: Beta Schedule (was Re: [HACKERS] Roadmap for FE/BE protocol redesign)

2003-03-10 Thread Christopher Kings-Lynne
I had been leaning to May 1 beta, but am happy to switch to June 1 if you feel that makes an improvement in the odds of completing the Windows port. (I think it will also improve the odds of finishing this protocol stuff I've taken on...) I don't want to see it pushed further than that

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Bruce Momjian
Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: I was willing to add a hack to enable default column labels to be table.column --- that seemed like the least obtrusive. Most of the definitional issues still apply: which table name are you going to insert, and under what

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Justin Clift
Tom Lane wrote: Dave Page [EMAIL PROTECTED] writes: What about the addition of pg_attribute.attrelid pg_attribute.attname/attnum in RowDesription messages to identify the underlying attribute (where appropriate)? Well, we can talk about it, but I still think that any frontend that relies on such

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Justin Clift
Hi guys, As a thought, has anyone considered if it's worth doing data compression of the new proposed protocol for PostgreSQL 8.0/7.4? It was suggested a long time ago by Joshua Drake (and his version was well accepted by his customers from what I heard), so might this be worth adding too?

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Justin Clift
Tom Lane wrote: Justin Clift [EMAIL PROTECTED] writes: The scenario that's appealing to me the most is this for the next release: PostgreSQL 8.0 + Includes PITR and the Win32 port If the folks doing those things can get done in time, great. I'm even willing to push out the release schedule (now,

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Bruce Momjian
Tom Lane wrote: * Backend should pass its version number, database encoding, default client encoding, and possibly other data (any ideas?) to frontend during startup, to avoid need for explicit queries to get this info. We could also consider eliminating SET commands sent by libpq in favor of

Re: [HACKERS] Roadmap for FE/BE protocol redesign

2003-03-10 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: Tom Lane wrote: * Backend should pass its version number, database encoding, default client encoding, and possibly other data (any ideas?) to frontend during startup, to avoid need for explicit queries to get this info. Should we pass this in a way