pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
7.1. Overview (The SQL Language)
5+ messages / 4 participants
[nested] [flat]

* 7.1. Overview (The SQL Language)
@ 2011-05-11 19:38  Grzegorz Szpetkowski <gszpetkowski@gmail.com>
  0 siblings, 2 replies; 5+ messages in thread

From: Grzegorz Szpetkowski @ 2011-05-11 19:38 UTC (permalink / raw)
  To: pgsql-docs

http://www.postgresql.org/docs/9.0/static/queries-overview.html

"Assuming that there is a table called table1, this command would
retrieve all rows and all columns from table1."

Maybe it's worth adding:

"Assuming that there is a table called table1, this command would
retrieve all rows and all columns (excluding system columns described
at Section 5.4) from table1."

Regards,
G. Sz.



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

* Re: 7.1. Overview (The SQL Language)
@ 2011-06-13 15:05  Robert Haas <robertmhaas@gmail.com>
  parent: Grzegorz Szpetkowski <gszpetkowski@gmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Robert Haas @ 2011-06-13 15:05 UTC (permalink / raw)
  To: Grzegorz Szpetkowski <gszpetkowski@gmail.com>; +Cc: pgsql-docs

On Wed, May 11, 2011 at 3:38 PM, Grzegorz Szpetkowski
<gszpetkowski@gmail.com> wrote:
> http://www.postgresql.org/docs/9.0/static/queries-overview.html
>
> "Assuming that there is a table called table1, this command would
> retrieve all rows and all columns from table1."
>
> Maybe it's worth adding:
>
> "Assuming that there is a table called table1, this command would
> retrieve all rows and all columns (excluding system columns described
> at Section 5.4) from table1."

Since this is a basic SQL tutorial, we don't want to get too far down
into the weeds, or people will get confused.  The next sentence would
need some thought, too:

 The select list specification <literal>*</literal> means all columns
that the table expression happens to provide.

Possibly we could add a footnote?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

* Re: 7.1. Overview (The SQL Language)
@ 2011-06-13 15:36  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Robert Haas <robertmhaas@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2011-06-13 15:36 UTC (permalink / raw)
  To: Robert Haas <robertmhaas@gmail.com>; +Cc: Grzegorz Szpetkowski <gszpetkowski@gmail.com>; pgsql-docs

Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, May 11, 2011 at 3:38 PM, Grzegorz Szpetkowski
> <gszpetkowski@gmail.com> wrote:
>> Maybe it's worth adding:
>> 
>> "Assuming that there is a table called table1, this command would
>> retrieve all rows and all columns (excluding system columns described
>> at Section 5.4) from table1."

> Since this is a basic SQL tutorial, we don't want to get too far down
> into the weeds, or people will get confused.

I agree.  Mentioning system columns at all in this place seems like
too much information.

			regards, tom lane



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

* Re: 7.1. Overview (The SQL Language)
@ 2011-09-10 13:32  Bruce Momjian <bruce@momjian.us>
  parent: Grzegorz Szpetkowski <gszpetkowski@gmail.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Bruce Momjian @ 2011-09-10 13:32 UTC (permalink / raw)
  To: Grzegorz Szpetkowski <gszpetkowski@gmail.com>; +Cc: pgsql-docs

Grzegorz Szpetkowski wrote:
> http://www.postgresql.org/docs/9.0/static/queries-overview.html
> 
> "Assuming that there is a table called table1, this command would
> retrieve all rows and all columns from table1."
> 
> Maybe it's worth adding:
> 
> "Assuming that there is a table called table1, this command would
> retrieve all rows and all columns (excluding system columns described
> at Section 5.4) from table1."

I considered this but it seems like too much detail for the overview
section.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +



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

* Re: 7.1. Overview (The SQL Language)
@ 2011-09-10 14:47  Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Bruce Momjian @ 2011-09-10 14:47 UTC (permalink / raw)
  To: Grzegorz Szpetkowski <gszpetkowski@gmail.com>; +Cc: pgsql-docs

bruce wrote:
> Grzegorz Szpetkowski wrote:
> > http://www.postgresql.org/docs/9.0/static/queries-overview.html
> > 
> > "Assuming that there is a table called table1, this command would
> > retrieve all rows and all columns from table1."
> > 
> > Maybe it's worth adding:
> > 
> > "Assuming that there is a table called table1, this command would
> > retrieve all rows and all columns (excluding system columns described
> > at Section 5.4) from table1."
> 
> I considered this but it seems like too much detail for the overview
> section.

On second thought, I added the "user-defined" modifier to the sentence; 
applid patch attached.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

Attachments:

/rtmp/user-defined (text/plain, 1.1K) download commit 90108c9aab51840a0fa7bcb11a2da09204d5b003 Author: Bruce Momjian <bruce@momjian.us> Date: Sat Sep 10 10:45:55 2011 -0400 Document that only user-defined columns are expanded by SELECT *. diff --git a/doc/src/sgml/queries.sgml b/doc/src/sgml/queries.sgml new file mode 100644 index 7ca640e..a3dadbe *** a/doc/src/sgml/queries.sgml --- b/doc/src/sgml/queries.sgml *************** *** 41,47 **** SELECT * FROM table1; </programlisting> Assuming that there is a table called <literal>table1</literal>, ! this command would retrieve all rows and all columns from <literal>table1</literal>. (The method of retrieval depends on the client application. For example, the <application>psql</application> program will display an ASCII-art --- 41,47 ---- SELECT * FROM table1; </programlisting> Assuming that there is a table called <literal>table1</literal>, ! this command would retrieve all rows and all user-defined columns from <literal>table1</literal>. (The method of retrieval depends on the client application. For example, the <application>psql</application> program will display an ASCII-art
^ permalink raw reply [nested|flat] 5+ messages in thread


end of thread, other threads:[~2011-09-10 14:47 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-05-11 19:38 7.1. Overview (The SQL Language) Grzegorz Szpetkowski <gszpetkowski@gmail.com>
2011-06-13 15:05 ` Robert Haas <robertmhaas@gmail.com>
2011-06-13 15:36   ` Tom Lane <tgl@sss.pgh.pa.us>
2011-09-10 13:32 ` Bruce Momjian <bruce@momjian.us>
2011-09-10 14:47 Re: 7.1. Overview (The SQL Language) Bruce Momjian <bruce@momjian.us>

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