Thread: Enums printout - possible bug
Hi all,
According to documentation: https://www.postgresql.org/docs/current/static/functions-enum.html when I execute SELECT enum_range(null::rainbow) then output should look like this: {red,orange,yellow,green,blue,purple}
But in pgAdmin output looks like this: {{,r,e,d,,,o,r,a,n,g,e,,,y,e,l,l,o,w,,,g,r,e,e,n,,,b,l,u,e,,,p,u,r,p,l,e,}}. When you click on the field, popup window shows correct value. I’ve double checked it in psql, and output is correct. I think it could be considered as bug in pgAdmin
PgAdmin details:
Version 2.0
Python Version 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
Flask Version 0.12.2
Application Mode Desktop
Pg Version: 10.1
Regardless this one, many thanks for your great job pgAdmin Team!
Best regards,
Bartosz Dmytrak
Hi all,
According to documentation: https://www.postgresql.org/
docs/current/static/functions- enum.html when I execute SELECT enum_range(null::rainbow) then output should look like this: {red,orange,yellow,green,blue, purple} But in pgAdmin output looks like this: {{,r,e,d,,,o,r,a,n,g,e,,,y,e,
l,l,o,w,,,g,r,e,e,n,,,b,l,u,e, ,,p,u,r,p,l,e,}}. When you click on the field, popup window shows correct value. I’ve double checked it in psql, and output is correct. I think it could be considered as bug in pgAdmin
PgAdmin details:
Version 2.0
Python Version 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
Flask Version 0.12.2
Application Mode Desktop
Pg Version: 10.1
Regardless this one, many thanks for your great job pgAdmin Team!
Best regards,
Bartosz Dmytrak
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Murtuza, can you investigate please?Thanks!--On Fri, Dec 8, 2017 at 8:08 PM, Bartosz Dmytrak <bdmytrak@gmail.com> wrote:Hi all,
According to documentation: https://www.postgresql.org/doc
s/current/static/functions-enu m.html when I execute SELECT enum_range(null::rainbow) then output should look like this: {red,orange,yellow,green,blue, purple} But in pgAdmin output looks like this: {{,r,e,d,,,o,r,a,n,g,e,,,y,e,l
,l,o,w,,,g,r,e,e,n,,,b,l,u,e,, ,p,u,r,p,l,e,}}. When you click on the field, popup window shows correct value. I’ve double checked it in psql, and output is correct. I think it could be considered as bug in pgAdmin
PgAdmin details:
Version 2.0
Python Version 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
Flask Version 0.12.2
Application Mode Desktop
Pg Version: 10.1
Regardless this one, many thanks for your great job pgAdmin Team!
Best regards,
Bartosz Dmytrak
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Hi Dave,Recently I sent a patch regarding multidimensional array representation issue.In that patch I have reworked about how multidimensional (1 dimension to n dimension)array data should be represented in grid.Also this patch covers almost all the array data types including composite array data types likeint8range[], enum[], inet[], cidr[], macaddr[], uuid[], xml[], bit[], varbit[] and so on.Please review the patch and let me know if any thing needs to be included in this patch.Thanks,--Harshal DhumalSr. Software EngineerOn Sat, Dec 9, 2017 at 10:45 AM, Dave Page <dpage@pgadmin.org> wrote:Murtuza, can you investigate please?Thanks!--On Fri, Dec 8, 2017 at 8:08 PM, Bartosz Dmytrak <bdmytrak@gmail.com> wrote:Hi all,
According to documentation: https://www.postgresql.org/doc
s/current/static/functions-enu m.html when I execute SELECT enum_range(null::rainbow) then output should look like this: {red,orange,yellow,green,blue, purple} But in pgAdmin output looks like this: {{,r,e,d,,,o,r,a,n,g,e,,,y,e,l
,l,o,w,,,g,r,e,e,n,,,b,l,u,e,, ,p,u,r,p,l,e,}}. When you click on the field, popup window shows correct value. I’ve double checked it in psql, and output is correct. I think it could be considered as bug in pgAdmin
PgAdmin details:
Version 2.0
Python Version 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
Flask Version 0.12.2
Application Mode Desktop
Pg Version: 10.1
Regardless this one, many thanks for your great job pgAdmin Team!
Best regards,
Bartosz Dmytrak
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
HiYeah, that one is in my list to work on. Have you specifically tested it with enum types (not enum[])?

On Sat, Dec 9, 2017 at 5:55 AM, Harshal Dhumal <harshal.dhumal@enterprisedb.com> wrote: Hi Dave,Recently I sent a patch regarding multidimensional array representation issue.In that patch I have reworked about how multidimensional (1 dimension to n dimension)array data should be represented in grid.Also this patch covers almost all the array data types including composite array data types likeint8range[], enum[], inet[], cidr[], macaddr[], uuid[], xml[], bit[], varbit[] and so on.Please review the patch and let me know if any thing needs to be included in this patch.Thanks,--Harshal DhumalSr. Software EngineerOn Sat, Dec 9, 2017 at 10:45 AM, Dave Page <dpage@pgadmin.org> wrote:Murtuza, can you investigate please?Thanks!--On Fri, Dec 8, 2017 at 8:08 PM, Bartosz Dmytrak <bdmytrak@gmail.com> wrote:Hi all,
According to documentation: https://www.postgresql.org/doc
s/current/static/functions-enu m.html when I execute SELECT enum_range(null::rainbow) then output should look like this: {red,orange,yellow,green,blue, purple} But in pgAdmin output looks like this: {{,r,e,d,,,o,r,a,n,g,e,,,y,e,l
,l,o,w,,,g,r,e,e,n,,,b,l,u,e,, ,p,u,r,p,l,e,}}. When you click on the field, popup window shows correct value. I’ve double checked it in psql, and output is correct. I think it could be considered as bug in pgAdmin
PgAdmin details:
Version 2.0
Python Version 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
Flask Version 0.12.2
Application Mode Desktop
Pg Version: 10.1
Regardless this one, many thanks for your great job pgAdmin Team!
Best regards,
Bartosz Dmytrak
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company--Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Attachment
On Sat, Dec 9, 2017 at 11:30 AM, Dave Page <dpage@pgadmin.org> wrote:HiYeah, that one is in my list to work on. Have you specifically tested it with enum types (not enum[])?Yes.On Sat, Dec 9, 2017 at 5:55 AM, Harshal Dhumal <harshal.dhumal@enterprisedb.com> wrote: Hi Dave,Recently I sent a patch regarding multidimensional array representation issue.In that patch I have reworked about how multidimensional (1 dimension to n dimension)array data should be represented in grid.Also this patch covers almost all the array data types including composite array data types likeint8range[], enum[], inet[], cidr[], macaddr[], uuid[], xml[], bit[], varbit[] and so on.Please review the patch and let me know if any thing needs to be included in this patch.Thanks,--Harshal DhumalSr. Software EngineerOn Sat, Dec 9, 2017 at 10:45 AM, Dave Page <dpage@pgadmin.org> wrote:Murtuza, can you investigate please?Thanks!--On Fri, Dec 8, 2017 at 8:08 PM, Bartosz Dmytrak <bdmytrak@gmail.com> wrote:Hi all,
According to documentation: https://www.postgresql.org/doc
s/current/static/functions-enu m.html when I execute SELECT enum_range(null::rainbow) then output should look like this: {red,orange,yellow,green,blue, purple} But in pgAdmin output looks like this: {{,r,e,d,,,o,r,a,n,g,e,,,y,e,l
,l,o,w,,,g,r,e,e,n,,,b,l,u,e,, ,p,u,r,p,l,e,}}. When you click on the field, popup window shows correct value. I’ve double checked it in psql, and output is correct. I think it could be considered as bug in pgAdmin
PgAdmin details:
Version 2.0
Python Version 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
Flask Version 0.12.2
Application Mode Desktop
Pg Version: 10.1
Regardless this one, many thanks for your great job pgAdmin Team!
Best regards,
Bartosz Dmytrak
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company--Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Attachment
On Sat, Dec 9, 2017 at 11:30 AM, Dave Page <dpage@pgadmin.org> wrote:HiYeah, that one is in my list to work on. Have you specifically tested it with enum types (not enum[])?Yes.
On Sat, Dec 9, 2017 at 5:55 AM, Harshal Dhumal <harshal.dhumal@enterprisedb.com> wrote: Hi Dave,Recently I sent a patch regarding multidimensional array representation issue.In that patch I have reworked about how multidimensional (1 dimension to n dimension)array data should be represented in grid.Also this patch covers almost all the array data types including composite array data types likeint8range[], enum[], inet[], cidr[], macaddr[], uuid[], xml[], bit[], varbit[] and so on.Please review the patch and let me know if any thing needs to be included in this patch.Thanks,--Harshal DhumalSr. Software EngineerOn Sat, Dec 9, 2017 at 10:45 AM, Dave Page <dpage@pgadmin.org> wrote:Murtuza, can you investigate please?Thanks!--On Fri, Dec 8, 2017 at 8:08 PM, Bartosz Dmytrak <bdmytrak@gmail.com> wrote:Hi all,
According to documentation: https://www.postgresql.org/doc
s/current/static/functions-enu m.html when I execute SELECT enum_range(null::rainbow) then output should look like this: {red,orange,yellow,green,blue, purple} But in pgAdmin output looks like this: {{,r,e,d,,,o,r,a,n,g,e,,,y,e,l
,l,o,w,,,g,r,e,e,n,,,b,l,u,e,, ,p,u,r,p,l,e,}}. When you click on the field, popup window shows correct value. I’ve double checked it in psql, and output is correct. I think it could be considered as bug in pgAdmin
PgAdmin details:
Version 2.0
Python Version 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
Flask Version 0.12.2
Application Mode Desktop
Pg Version: 10.1
Regardless this one, many thanks for your great job pgAdmin Team!
Best regards,
Bartosz Dmytrak
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company--Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Attachment
On Sat, Dec 9, 2017 at 11:50 AM, Harshal Dhumal <harshal.dhumal@enterprisedb.com> wrote: On Sat, Dec 9, 2017 at 11:30 AM, Dave Page <dpage@pgadmin.org> wrote:HiYeah, that one is in my list to work on. Have you specifically tested it with enum types (not enum[])?Yes.@Harshal,Can you add multidimensional array, enum types into feature test (pg_datatype_validation_test.py) ?
On Sat, Dec 9, 2017 at 5:55 AM, Harshal Dhumal <harshal.dhumal@enterprisedb.com> wrote: Hi Dave,Recently I sent a patch regarding multidimensional array representation issue.In that patch I have reworked about how multidimensional (1 dimension to n dimension)array data should be represented in grid.Also this patch covers almost all the array data types including composite array data types likeint8range[], enum[], inet[], cidr[], macaddr[], uuid[], xml[], bit[], varbit[] and so on.Please review the patch and let me know if any thing needs to be included in this patch.Thanks,--Harshal DhumalSr. Software EngineerOn Sat, Dec 9, 2017 at 10:45 AM, Dave Page <dpage@pgadmin.org> wrote:Murtuza, can you investigate please?Thanks!--On Fri, Dec 8, 2017 at 8:08 PM, Bartosz Dmytrak <bdmytrak@gmail.com> wrote:Hi all,
According to documentation: https://www.postgresql.org/doc
s/current/static/functions-enu m.html when I execute SELECT enum_range(null::rainbow) then output should look like this: {red,orange,yellow,green,blue, purple} But in pgAdmin output looks like this: {{,r,e,d,,,o,r,a,n,g,e,,,y,e,l
,l,o,w,,,g,r,e,e,n,,,b,l,u,e,, ,p,u,r,p,l,e,}}. When you click on the field, popup window shows correct value. I’ve double checked it in psql, and output is correct. I think it could be considered as bug in pgAdmin
PgAdmin details:
Version 2.0
Python Version 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
Flask Version 0.12.2
Application Mode Desktop
Pg Version: 10.1
Regardless this one, many thanks for your great job pgAdmin Team!
Best regards,
Bartosz Dmytrak
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company--Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Attachment
--Harshal DhumalSr. Software EngineerOn Sat, Dec 9, 2017 at 12:06 PM, Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote: On Sat, Dec 9, 2017 at 11:50 AM, Harshal Dhumal <harshal.dhumal@enterprisedb.com> wrote: On Sat, Dec 9, 2017 at 11:30 AM, Dave Page <dpage@pgadmin.org> wrote:HiYeah, that one is in my list to work on. Have you specifically tested it with enum types (not enum[])?Yes.@Harshal,Can you add multidimensional array, enum types into feature test (pg_datatype_validation_test.py) ? I think I need to add test cases for all array data types not just enum types since fix was not targeted for any particular data type.On Sat, Dec 9, 2017 at 5:55 AM, Harshal Dhumal <harshal.dhumal@enterprisedb.com> wrote: Hi Dave,Recently I sent a patch regarding multidimensional array representation issue.In that patch I have reworked about how multidimensional (1 dimension to n dimension)array data should be represented in grid.Also this patch covers almost all the array data types including composite array data types likeint8range[], enum[], inet[], cidr[], macaddr[], uuid[], xml[], bit[], varbit[] and so on.Please review the patch and let me know if any thing needs to be included in this patch.Thanks,--Harshal DhumalSr. Software EngineerOn Sat, Dec 9, 2017 at 10:45 AM, Dave Page <dpage@pgadmin.org> wrote:Murtuza, can you investigate please?Thanks!--On Fri, Dec 8, 2017 at 8:08 PM, Bartosz Dmytrak <bdmytrak@gmail.com> wrote:Hi all,
According to documentation: https://www.postgresql.org/doc
s/current/static/functions-enu m.html when I execute SELECT enum_range(null::rainbow) then output should look like this: {red,orange,yellow,green,blue, purple} But in pgAdmin output looks like this: {{,r,e,d,,,o,r,a,n,g,e,,,y,e,l
,l,o,w,,,g,r,e,e,n,,,b,l,u,e,, ,p,u,r,p,l,e,}}. When you click on the field, popup window shows correct value. I’ve double checked it in psql, and output is correct. I think it could be considered as bug in pgAdmin
PgAdmin details:
Version 2.0
Python Version 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)]
Flask Version 0.12.2
Application Mode Desktop
Pg Version: 10.1
Regardless this one, many thanks for your great job pgAdmin Team!
Best regards,
Bartosz Dmytrak
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company--Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company