agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
attribute names in "retrieve.."
2+ messages / 2 participants
[nested] [flat]

* attribute names in "retrieve.."
@ 1994-06-25 00:43  Bruce Taneja. <aataneja@cs.mtu.edu>
  0 siblings, 1 reply; 2+ messages in thread

From: Bruce Taneja. @ 1994-06-25 00:43 UTC (permalink / raw)
  To: legacy


Howdy folks,

I am trying to define a "complex object" .. for simplicity 
assume the circle.c example .. 

*           retrieve (tutorial.all)  \g  

would produce something like :

Query sent to backend is "retrieve (tutorial.all) "
---------------
| a       c   |
---------------
| (1 , 1, 10) |
---------------
| (2 , 2, 5)  |
---------------
| (0 , 1.8, 10)|
---------------

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Now, what I NEED is :

-----------------------------------
|          circle  a              |
-----------------------------------
|center x  |  center y  |  radius |
-----------------------------------
|    1     |     1      |    10   |
-----------------------------------
|    2     |     2      |    5    |
-----------------------------------
|    0     |     1.8    |    10   |
-----------------------------------

I can see how to produce "fancy string" data like:

" |    1     |     1      |    10   | " 

from my "circle_out " function , but how do can force postgres
to create  a  fancy header like I want :

-----------------------------------
|          circle  a              |
-----------------------------------      and not just ----------
|center x  |  center y  |  radius |                   |   a    |
-----------------------------------                   ----------


..... I don't think I can do this from the circle_out function
as then this header would be attached to every tuple retrieved

.. so where do I have to do the hacking ????

thanks a lot !
Bruce!

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================



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

* Re: attribute names in "retrieve.."
@ 1994-06-26 04:41  Paul M. Aoki <aoki@CS.Berkeley.EDU>
  parent: Bruce Taneja. <aataneja@cs.mtu.edu>
  0 siblings, 0 replies; 2+ messages in thread

From: Paul M. Aoki @ 1994-06-26 04:41 UTC (permalink / raw)
  To: Bruce Taneja. <aataneja@cs.mtu.edu>; +Cc: legacy

aataneja@cs.mtu.edu (Bruce Taneja.) writes:
> -----------------------------------
> |          circle  a              |
> -----------------------------------      and not just ----------
> |center x  |  center y  |  radius |                   |   a    |
> -----------------------------------                   ----------

this header is produced by the terminal monitor, src/bin/monitor/monitor.c,
not by postgres itself.  monitor is just another frontend app, you can hack 
on that all you want..
--
  Paul M. Aoki  |  CS Div., Dept. of EECS, UCB  |  aoki@CS.Berkeley.EDU
                |  Berkeley, CA 94720-1776      |  ...!uunet!ucbvax!aoki

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================



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


end of thread, other threads:[~1994-06-26 04:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1994-06-25 00:43 attribute names in "retrieve.." Bruce Taneja. <aataneja@cs.mtu.edu>
1994-06-26 04:41 ` Paul M. Aoki <aoki@CS.Berkeley.EDU>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox