9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] PQ - a Plan 9 way of relational database?
@ 2001-02-19  4:13 okamoto
  2001-02-19  9:59 ` cLIeNUX user
  0 siblings, 1 reply; 4+ messages in thread
From: okamoto @ 2001-02-19  4:13 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1112 bytes --]

I was too late to enter this discussion, because have been engaged in
other task, Japanese font. ^_^

I began to see pq from the last day...  First of all, I was surprised these
codes are too small to be expected as Relational database system...  However,
along with proceeding my understanding, I was getting realize hmmm this
is that, the Plan 9 way of dealing with database, everything resources are
named files...

Join could be very easy to Plan 9, yes, agreed.  Indexing could be done this way,
agreed.  Record is considered as a line deliminated by a character, and the
attribute is individual elements enclosed by such delimiters in this line.  The
file can be called 'database'  in a normal sense.  Record lock is file lock, and
we don't need any other mechanism for it, because fileserver can offer it.
Yes, very interesting!

In your implementation, numbers are treated by ascii digit number only?
How about floating point number?
Does it have some arithmetics such as plus, munus, multiple or <, > >=
etc operators?

Sorry, I'm not full understanding of your PQ yet.

Kenji


[-- Attachment #2: Type: message/rfc822, Size: 2986 bytes --]

From: geoff@x.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] So, once I've got the OS up how do I...
Date: Thu, 8 Feb 2001 01:20:19 -0500
Message-ID: <20010208062037.E5988199E1@mail.cse.psu.edu>

Forgive me for pulling a Boyd or two.  This new-fangled RAM stuff is
crap; it can't even retain its contents across a power outage of a few
seconds, let alone hours.  Gimme that old core memory any day; I don't
need particularly fast memory (or processors).  That was *real*
technology.

I would hope that we wouldn't saddle Plan 9 with a Real Commercial
Database™.  In thirty years of programming computers, I've never seen
a problem that I thought would be better solved using a database.  The
Real Commercial Databases like Oracle seem to require massive machines
to achieve even mediocre performance, they lock up your data in binary
form, and require you to use some abortion like ODBC or SQL to get at
*your* data.

I can see the utility in using an index to look up a record quickly by
key.  This doesn't require a Real Commercial Database, however.  And
why would I want to have to fight my way through SQL or buy the
largest machine Sun makes or hire a full-time DBA to maintain schema
or pay an enormous licensing fee for the privilege?

Seriously, can anybody explain why a rational person would buy a Real
Commercial Database?  (`Because all the other lemmings are doing it'
isn't a sufficiently-good answer.)  I've been waiting 25 years for
such an answer and haven't got one yet.

- ye olde codger (what ever happened to VSAM?)

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: [9fans] PQ - a Plan 9 way of relational database?
@ 2001-02-20  2:06 okamoto
  0 siblings, 0 replies; 4+ messages in thread
From: okamoto @ 2001-02-20  2:06 UTC (permalink / raw)
  To: 9fans

>Why not? Transactions. E-commerce.
>Multi-user. SQL. Triggers. Mine is/has none of those. I learned a lot

I suppose PQ (Phone Query?) would be designed mainly for read only
database.  Many usages of RDBMS may actually be this like.  :-)
However, yes, we should have the concept of transaction if we apply
this to multiple users who can update at anytime.
SQL and triggering are not so essential, but considered as cosmetics for
more user friendly RDBMS.

 From the naming, I suppose supported data types are limitted only to
string type.  However, adding more data types and more operations
other than '=' could be not so difficult.

As a conclusion, PQ should have concept of transaction first.
Am I wrong?

Kenji



^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: [9fans] PQ - a Plan 9 way of relational database?
@ 2001-02-20  8:52 geoff
  0 siblings, 0 replies; 4+ messages in thread
From: geoff @ 2001-02-20  8:52 UTC (permalink / raw)
  To: 9fans

pq has been used mainly to query data that change relatively
infrequently (typically once or twice a day).  Adding real-time
incremental updates has been on the to-do list for pq for years.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-02-20  8:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-19  4:13 [9fans] PQ - a Plan 9 way of relational database? okamoto
2001-02-19  9:59 ` cLIeNUX user
2001-02-20  2:06 okamoto
2001-02-20  8:52 geoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).