matthewmturner commented on pull request #1875:
URL: 
https://github.com/apache/arrow-datafusion/pull/1875#issuecomment-1057129101


   I thought we were actually already getting inspiriration from psql, see 
below:
   
   ```
   psqlrc and ~/.psqlrc
   
       Unless it is passed an -X option, psql attempts to read and execute 
commands from the system-wide startup file (psqlrc) and then the user's 
personal startup file (~/.psqlrc), after connecting to the database but before 
accepting normal commands. These files can be used to set up the client and/or 
the server to taste, typically with \set and SET commands.
   
       The system-wide startup file is named psqlrc and is sought in the 
installation's “system configuration” directory, which is most reliably 
identified by running pg_config --sysconfdir. By default this directory will be 
../etc/ relative to the directory containing the PostgreSQL executables. The 
name of this directory can be set explicitly via the PGSYSCONFDIR environment 
variable.
   
       The user's personal startup file is named .psqlrc and is sought in the 
invoking user's home directory. On Windows, which lacks such a concept, the 
personal startup file is named %APPDATA%\postgresql\psqlrc.conf. The location 
of the user's startup file can be set explicitly via the PSQLRC environment 
variable.
   
       Both the system-wide startup file and the user's personal startup file 
can be made psql-version-specific by appending a dash and the PostgreSQL major 
or minor release number to the file name, for example ~/.psqlrc-9.2 or 
~/.psqlrc-9.2.5. The most specific version-matching file will be read in 
preference to a non-version-specific file.
   ```
   
   Unless your point is that the above is more for options / configuration than 
it is for actually SQL / DDL.  Which I think makes sense... I can make that 
update.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to