Re: [Django] #23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set env PGOPTIONS

2023-10-12 Thread Django
#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
-+-
 Reporter:  benjaoming   |Owner:  (none)
 Type:  New feature  |   Status:  new
Component:  Core (Management |  Version:  dev
  commands)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Mariusz Felisiak):

 * owner:  Dulmandakh => (none)
 * status:  assigned => new


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018b23329513-7fbb9088-547f-43df-884b-d436c35f3e3b-00%40eu-central-1.amazonses.com.


Re: [Django] #23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set env PGOPTIONS

2020-10-28 Thread Django
#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
-+-
 Reporter:  benjaoming   |Owner:
 |  Dulmandakh
 Type:  New feature  |   Status:  assigned
Component:  Core (Management |  Version:  master
  commands)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Mariusz Felisiak):

 * needs_better_patch:  0 => 1
 * needs_docs:  0 => 1


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.4186554165fb623897e7ed789de970cb%40djangoproject.com.


Re: [Django] #23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set env PGOPTIONS

2020-10-25 Thread Django
#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
-+-
 Reporter:  benjaoming   |Owner:
 |  Dulmandakh
 Type:  New feature  |   Status:  assigned
Component:  Core (Management |  Version:  master
  commands)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Jacob Walls):

 * owner:  Flavio Curella => Dulmandakh
 * needs_better_patch:  1 => 0


Comment:

 Improvement flag was set on previous patch, so unsetting for new patch and
 assigning to PR author.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.9f325fc8884dec763f7365148ef52c86%40djangoproject.com.


Re: [Django] #23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set env PGOPTIONS

2020-04-22 Thread Django
#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
-+-
 Reporter:  benjaoming   |Owner:  Flavio
 |  Curella
 Type:  New feature  |   Status:  assigned
Component:  Core (Management |  Version:  master
  commands)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Dulmandakh):

 Replying to [comment:8 felixxm]:
 > Replying to [comment:7 Dulmandakh]:
 > >  may be used to set many connection configurations of psycopg2
 other than **options** or PGOPTIONS.
 >
 > I'm not sure what does it mean? You want to pass `options` to the
 `PGOPTIONS` so how it can support sth else? The list of all available
 options can be found in [https://www.postgresql.org/docs/10/runtime-
 config.html the PostgreSQL docs]. Also I'm not sure
 ([https://github.com/django/django/pull/3168#issuecomment-55174417 as
 pointed by Tim]) if passing all possible options is safe.

 IIRC, OPTIONS passed to
 [https://www.psycopg.org/docs/module.html#psycopg2.connect
 psycopg2.connect] method directly as a part of kwargs, so it might be best
 to not interfere with it. Also we cannot determine which options are safe
 or not, so it might be best to leave it a web developer to decide.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.54da3190191aecb0467328e4e826b12b%40djangoproject.com.


Re: [Django] #23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set env PGOPTIONS

2020-04-14 Thread Django
#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
-+-
 Reporter:  benjaoming   |Owner:  Flavio
 |  Curella
 Type:  New feature  |   Status:  assigned
Component:  Core (Management |  Version:  master
  commands)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-

Comment (by felixxm):

 Replying to [comment:7 Dulmandakh]:
 >  may be used to set many connection configurations of psycopg2 other
 than **options** or PGOPTIONS.

 I'm not sure what does it mean? You want to pass `options` to the
 `PGOPTIONS` so how it can support sth else? The list of all available
 options can be found in [https://www.postgresql.org/docs/10/runtime-
 config.html the PostgreSQL docs]. Also I'm not sure
 ([https://github.com/django/django/pull/3168#issuecomment-55174417 as
 pointed by Tim]) if passing all possible options is safe.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.bd96a30ea82ceeb60600ed5c8f5648ea%40djangoproject.com.


Re: [Django] #23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set env PGOPTIONS

2020-04-14 Thread Django
#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
-+-
 Reporter:  benjaoming   |Owner:  Flavio
 |  Curella
 Type:  New feature  |   Status:  assigned
Component:  Core (Management |  Version:  master
  commands)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Dulmandakh):

 The implementation differs from initial implementation because OPTIONS may
 be used to set many connection configurations of psycopg2 other than
 **options** or PGOPTIONS.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.3513b29a02a0540eeeae24ca93c391fa%40djangoproject.com.


Re: [Django] #23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set env PGOPTIONS

2020-04-14 Thread Django
#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
-+-
 Reporter:  benjaoming   |Owner:  Flavio
 |  Curella
 Type:  New feature  |   Status:  assigned
Component:  Core (Management |  Version:  master
  commands)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Dulmandakh):

 PR https://github.com/django/django/pull/12715

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.4530df65a353cd1a8301c2056a182554%40djangoproject.com.


Re: [Django] #23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set env PGOPTIONS

2015-04-12 Thread Django
#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
-+-
 Reporter:  benjaoming   |Owner:  fcurella
 Type:  New feature  |   Status:  assigned
Component:  Core (Management |  Version:  master
  commands)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by tomikyos):

 * cc: tomi.kyostila@… (added)


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.eb5cc58436c55fdd15c9926a93cd0102%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set env PGOPTIONS

2014-09-06 Thread Django
#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
-+-
 Reporter:  benjaoming   |Owner:  fcurella
 Type:  New feature  |   Status:  assigned
Component:  Core (Management |  Version:  master
  commands)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:   |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  1
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by timgraham):

 * needs_better_patch:  0 => 1
 * easy:  1 => 0


Comment:

 I left comments for improvement on the PR. Please uncheck "Patch needs
 improvement" when you update it, thanks.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.4168c683e08c4688af9af7b4eda3ce24%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set env PGOPTIONS

2014-09-05 Thread Django
#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
-+-
 Reporter:  benjaoming   |Owner:  fcurella
 Type:  New feature  |   Status:  assigned
Component:  Core (Management |  Version:  master
  commands)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:   |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  1|
-+-
Changes (by fcurella):

 * has_patch:  0 => 1
 * version:  1.7-rc-2 => master
 * easy:  0 => 1


Comment:

 PR up at https://github.com/django/django/pull/3168

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.37ce2c78ef7286a880fb127a327db9ad%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set env PGOPTIONS

2014-09-05 Thread Django
#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
-+-
 Reporter:  benjaoming   |Owner:  fcurella
 Type:  New feature  |   Status:  assigned
Component:  Core (Management |  Version:  1.7-rc-2
  commands)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:   |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by fcurella):

 * owner:  nobody => fcurella
 * status:  new => assigned


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.ae9e81a118aadf59acf1c46590c8e9ae%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set env PGOPTIONS

2014-08-27 Thread Django
#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
-+-
 Reporter:  benjaoming   |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Core (Management |  Version:  1.7-rc-2
  commands)  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:   |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by timgraham):

 * needs_better_patch:   => 0
 * component:  Database layer (models, ORM) => Core (Management commands)
 * needs_tests:   => 0
 * needs_docs:   => 0
 * type:  Bug => New feature
 * stage:  Unreviewed => Accepted


Comment:

 It looks like a reasonable request, and we recently enhanced the options
 that dbshell accepts when using MySQL (#22646).

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.e92c9361bbe409f8f626a50f4fac6eef%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set env PGOPTIONS

2014-08-19 Thread Django
#23318: Management command dbshell does not use DATABASE[...]['OPTIONS'] to set 
env
PGOPTIONS
--+--
 Reporter:  benjaoming|  Owner:  nobody
 Type:  Bug   | Status:  new
Component:  Database layer (models, ORM)  |Version:  1.7-rc-2
 Severity:  Normal|   Keywords:
 Triage Stage:  Unreviewed|  Has patch:  0
Easy pickings:  0 |  UI/UX:  0
--+--
 I am trying to make use of a different "search_path" by use of
 {{{settings.DATABASE[...]['OPTIONS'] = '-c
 search_path=my_other_schema,public'}}} -- however, since they are not
 passed, {{{python manage.py dbshell
 --database=MY_OTHER_DATABASE_CONNECTION}}} will yield an unexpected
 result.

 The problem is that the shell env variable PGOPTIONS="-c
 search_path=MY_SEARCH_PATH_CONF" is not set.

 I am using it for the purpose of having multiple south_migrationhistory
 tables, one for every database connection. They should have been populated
 by:

 {{{
 python manage.py sqlall south | python manage.py dbshell --database=DBNAME
 }}}

 Current work-around:

 {{{
 python manage.py sqlall south | PGOPTIONS="-c
 search_path=NAME_OF_MY_SCHEMA" python manage.py dbshell --database=DBNAME
 }}}

 I am not sure how 1.7 will handle migration histories when populating
 different database connections and auto-selecting them using routers. But
 at least having the above to work would be nice, because it makes it easy
 to manually pipe around the SQL statements to different DB connections.

 Also in more severe cases, not having the connection options passed to
 dbshell might yield other unexpected results!?

 This might be of interest to other db backends, but please limit the issue
 here to only postgres, as it's perfectly simple to copy in the contents of
 OPTIONS to the env variable PGOPTIONS.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.15f7bbbc275b97c75ecbe23920d8a367%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.