Skip to content
Snippets Groups Projects
  1. Jan 27, 2000
    • Tom Lane's avatar
      Redesign DISTINCT ON as discussed in pgsql-sql 1/25/00: syntax is now · dd979f66
      Tom Lane authored
      SELECT DISTINCT ON (expr [, expr ...]) targetlist ...
      and there is a check to make sure that the user didn't specify an ORDER BY
      that's incompatible with the DISTINCT operation.
      Reimplement nodeUnique and nodeGroup to use the proper datatype-specific
      equality function for each column being compared --- they used to do
      bitwise comparisons or convert the data to text strings and strcmp().
      (To add insult to injury, they'd look up the conversion functions once
      for each tuple...)  Parse/plan representation of DISTINCT is now a list
      of SortClause nodes.
      initdb forced by querytree change...
      dd979f66
  2. Jan 26, 2000
    • Bruce Momjian's avatar
      as attache of this mail is patch (to the main tree) with to_char's · b866d2e2
      Bruce Momjian authored
      family functions. Contain:
      
        conversion from a datetype to formatted text:
      
      	to_char( datetime, 	text)
      	to_char( timestamp,	text)
      	to_char( int4,		text)
      	to_char( int8,		text)
      	to_char( float4,	text)
      	to_char( float8,	text)
      	to_char( numeric,	text)
      
        vice versa:
      
      	to_date		( text, text)
      	to_datetime	( text, text)
      	to_timestamp	( text, text)
      	to_number	( text, text)	   (convert to numeric)
      
      
        PostgreSQL to_char is very compatible with Oracle's to_char(), but not
      total exactly (now). Small differentions are in number formating. It will
      fix in next to_char() version.
      
      
      ! If will this patch aplly to the main tree, must be delete the current
        to_char version in contrib (directory "dateformat" and note in contrib's
        README), this patch not erase it (sorry Bruce).
      
      
      
      The patch patching files:
      
      	doc/src/sgml/func.sgml
                           ^^^^^^^^
         Hmm, I'm not sure if my English... :( Check it anyone (volunteer)?
      
         Thomas, it is right? SGML is not my primary lang  and compile
         the current PG docs tree is very happy job (hard variables setting in
         docs/sgml/Makefile --> HSTYLE= /home/users/t/thomas/....  :-)
      
         What add any definition to global configure.in and set Makefiles in docs
         tree via ./configure?
      
      	src/backend/utils/adt/Makefile
      	src/backend/utils/adt/formatting.c
      	src/include/catalog/pg_proc.h
      	src/include/utils/formatting.h
      Karel Zak <zakkr@zf.jcu.cz>              http://home.zf.jcu.cz/~zakkr/
      b866d2e2
  3. Jan 25, 2000
  4. Jan 24, 2000
  5. Jan 23, 2000
  6. Jan 20, 2000
  7. Jan 19, 2000
  8. Jan 18, 2000
  9. Jan 16, 2000
  10. Jan 15, 2000
    • Peter Eisentraut's avatar
      - Allow array on int8 · 2a1bfbce
      Peter Eisentraut authored
      - Prevent permissions on indexes
      - Instituted --enable-multibyte option and tweaked the MB build process where necessary
      - initdb prompts for superuser password
      2a1bfbce
  11. Jan 14, 2000
  12. Jan 12, 2000
  13. Jan 11, 2000
  14. Jan 09, 2000
  15. Dec 30, 1999
  16. Dec 18, 1999
    • Bruce Momjian's avatar
      · 1c225764
      Bruce Momjian authored
      > > It would be nice for new users; I think it would make it easier
      > > for them to actually set out and do it.  Many new users are
      > > of the not-so-knowledgable variety, and shell scripting isn't
      > > something they want to undertake.
      >
      > Can someone modify the vacuumdb shell script to do that?
      i tried it... it seems to work
      
      neko@kredit.sth.sz
      1c225764
  17. Dec 17, 1999
    • Thomas G. Lockhart's avatar
      Fix typo in tag. · 97710d9f
      Thomas G. Lockhart authored
      97710d9f
    • Bruce Momjian's avatar
      This is my -- hopefully sufficiently portable -- attempt at cleaning out · 83bad7c0
      Bruce Momjian authored
      initdb. No more obscure dependencies on environment variables or paths.
      It
      now finds the templates and the right postgres itself (with cmd line
      options as fallback). It also no longer depends on $USER (su safe), and
      doesn't advertise that --username allows you to install the db as a
      different user, since that doesn't work anyway. Also, recovery and
      cleanup
      on all errors. Consistent options, clearer documentation.
      
      Please take a look at this and adopt it if you feel it's safe enough. I
      have simulated all the stupid circumstances I could think of, but you
      never know with shell scripts.
      
      Oh yeah, you can give the postgres user a default password now.
      
      --
      Peter Eisentraut                  Sernanders väg 10:115
      83bad7c0
  18. Dec 14, 1999
    • Bruce Momjian's avatar
      Depending on my interpreting (and programming) skills, this might solve · bcaabc56
      Bruce Momjian authored
      anywhere from zero to two TODO items.
      
      * Allow flag to control COPY input/output of NULLs
      
      I got this:
      COPY table .... [ WITH NULL AS 'string' ]
      which does what you'd expect. The default is \N, otherwise you can use
      empty strings, etc. On Copy In this acts like a filter: every data item
      that looks like 'string' becomes a NULL. Pretty straightforward.
      
      This also seems to be related to
      
      * Make postgres user have a password by default
      
      If I recall this discussion correctly, the problem was actually that the
      default password for the postgres (or any) user is in fact "\N", because
      of the way copy is used. With this change, the file pg_pwd is copied out
      with nulls as empty strings, so if someone doesn't have a password, the
      password is just '', which one would expect from a new account. I don't
      think anyone really wants a hard-coded default password.
      
      Peter Eisentraut                  Sernanders väg 10:115
      bcaabc56
  19. Dec 13, 1999
  20. Dec 12, 1999
    • Bruce Momjian's avatar
      Meanwhile, database names with single quotes in names don't work very well · 11023eb1
      Bruce Momjian authored
      at all, and because of shell quoting rules this can't be fixed, so I put
      in error messages to that end.
      
      Also, calling create or drop database in a transaction block is not so
      good either, because the file system mysteriously refuses to roll back rm
      calls on transaction aborts. :) So I put in checks to see if a transaction
      is in progress and signal an error.
      
      Also I put the whole call in a transaction of its own to be able to roll
      back changes to pg_database in case the file system operations fail.
      
      The alternative location issues I posted recently were untouched, awaiting
      the outcome of that discussion. Other than that, this should be much more
      fool-proof now.
      
      The docs I cleaned up as well.
      
      Peter Eisentraut                  Sernanders väg 10:115
      11023eb1
  21. Dec 07, 1999
    • Bruce Momjian's avatar
      Okay, that should put us back in sync. These two patches (src & doc) are · a0aab48f
      Bruce Momjian authored
      against the sources from one hour ago and contain all the portable and
      up
      to date stuff.
      
      A few other CVS "householding" things you might want to take care of:
      
      * Remove the src/bin/cleardbdir directory
      
      * Remove the file src/bin/psql/sql_help.h from the repository, as it is
      a derived file and is build by the release_prep.
      
      Peter Eisentraut
      a0aab48f
  22. Dec 06, 1999
  23. Dec 05, 1999
    • Bruce Momjian's avatar
      Remove destroylang.sgml. · 60ae5ed0
      Bruce Momjian authored
      60ae5ed0
    • Bruce Momjian's avatar
      Update. · d7857e57
      Bruce Momjian authored
      d7857e57
    • Bruce Momjian's avatar
      Update · 66f8da07
      Bruce Momjian authored
      66f8da07
    • Bruce Momjian's avatar
      I cleaned those out as well (the echo -n "bug" was in there ;) and moved · ed62104e
      Bruce Momjian authored
      them into the scripts dir. I also added a --list option to show already
      installed languages.
      
      This whole moving and renaming totally confused CVS and my checked out
      copy got completely fried last night. When you apply the source patch,
      please make sure that all the directories src/bin/{create|destroy}* as
      well as vacuumdb, cleardbdir are gone and that all the scripts (7) are
      in
      scripts/.
      
      Meanwhile I am still puzzled about what happened with the docs patch.
      Because I don't know what you got now, the second attachment contains
      the
      files
      
      ref/allfiles.sgml
      ref/commands.sgml
      ref/createlang.sgml
      ref/droplang.sgml
      doc/src/sgml/Makefile
      
      Peter Eisentraut                  Sernanders väg 10:115
      ed62104e
Loading