pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14601: Alternative support for amcanorder column under pg_am
6+ messages / 4 participants
[nested] [flat]

* BUG #14601: Alternative support for amcanorder column under pg_am
@ 2017-03-28 19:50 ppoojari@erwin.com
  2017-03-28 20:16 ` Re: BUG #14601: Alternative support for amcanorder column under pg_am David G. Johnston <david.g.johnston@gmail.com>
  2017-03-28 20:48 ` Re: BUG #14601: Alternative support for amcanorder column under pg_am Andrew Gierth <andrew@tao11.riddles.org.uk>
  0 siblings, 2 replies; 6+ messages in thread

From: ppoojari@erwin.com @ 2017-03-28 19:50 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14601
Logged by:          Prajval Poojari
Email address:      ppoojari@erwin.com
PostgreSQL version: 9.6.2
Operating system:   Win10 64 bit Pro
Description:        

Hi 
In 9.6 when i tried to use amcanorder column under pg_am it gives me an
error stating column doesnt not exist.
Can you please provide me with some information if any alternative solution
is provided for this feature ?


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


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

* Re: BUG #14601: Alternative support for amcanorder column under pg_am
  2017-03-28 19:50 BUG #14601: Alternative support for amcanorder column under pg_am ppoojari@erwin.com
@ 2017-03-28 20:16 ` David G. Johnston <david.g.johnston@gmail.com>
  2017-03-28 20:32   ` Re: BUG #14601: Alternative support for amcanorder column under pg_am Prajval Poojari <ppoojari@erwin.com>
  1 sibling, 1 reply; 6+ messages in thread

From: David G. Johnston @ 2017-03-28 20:16 UTC (permalink / raw)
  To: Prajval Poojari <ppoojari@erwin.com>; +Cc: pgsql-bugs

On Tue, Mar 28, 2017 at 12:50 PM, <ppoojari@erwin.com> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      14601
> Logged by:          Prajval Poojari
> Email address:      ppoojari@erwin.com
> PostgreSQL version: 9.6.2
> Operating system:   Win10 64 bit Pro
> Description:
>
> Hi
> In 9.6 when i tried to use amcanorder column under pg_am it gives me an
> error stating column doesnt not exist.
> Can you please provide me with some information if any alternative solution
> is provided for this feature ?
>

​The 9.6 documentation page ​for pg_am is a good place to start.

https://www.postgresql.org/docs/9.6/static/catalog-pg-am.html

David J.

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

* Re: BUG #14601: Alternative support for amcanorder column under pg_am
  2017-03-28 19:50 BUG #14601: Alternative support for amcanorder column under pg_am ppoojari@erwin.com
  2017-03-28 20:16 ` Re: BUG #14601: Alternative support for amcanorder column under pg_am David G. Johnston <david.g.johnston@gmail.com>
@ 2017-03-28 20:32   ` Prajval Poojari <ppoojari@erwin.com>
  2017-03-28 20:40     ` Re: BUG #14601: Alternative support for amcanorder column under pg_am David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Prajval Poojari @ 2017-03-28 20:32 UTC (permalink / raw)
  To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-bugs

Yes David I agree
But the problem occurring is column named amcanorder which was available until 9.5 release is not available in 9.6
So do we have any alternative solution if I want to use that column in 9.6 ?

Get Outlook for iOS<https://aka.ms/o0ukef;
________________________________
From: David G. Johnston <david.g.johnston@gmail.com>
Sent: Tuesday, March 28, 2017 4:16:44 PM
To: Prajval Poojari
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #14601: Alternative support for amcanorder column under pg_am

On Tue, Mar 28, 2017 at 12:50 PM, <ppoojari@erwin.com<mailto:ppoojari@erwin.com>> wrote:
The following bug has been logged on the website:

Bug reference:      14601
Logged by:          Prajval Poojari
Email address:      ppoojari@erwin.com<mailto:ppoojari@erwin.com>
PostgreSQL version: 9.6.2
Operating system:   Win10 64 bit Pro
Description:

Hi
In 9.6 when i tried to use amcanorder column under pg_am it gives me an
error stating column doesnt not exist.
Can you please provide me with some information if any alternative solution
is provided for this feature ?

​The 9.6 documentation page ​for pg_am is a good place to start.

https://www.postgresql.org/docs/9.6/static/catalog-pg-am.html

David J.



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

* Re: BUG #14601: Alternative support for amcanorder column under pg_am
  2017-03-28 19:50 BUG #14601: Alternative support for amcanorder column under pg_am ppoojari@erwin.com
  2017-03-28 20:16 ` Re: BUG #14601: Alternative support for amcanorder column under pg_am David G. Johnston <david.g.johnston@gmail.com>
  2017-03-28 20:32   ` Re: BUG #14601: Alternative support for amcanorder column under pg_am Prajval Poojari <ppoojari@erwin.com>
@ 2017-03-28 20:40     ` David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 0 replies; 6+ messages in thread

From: David G. Johnston @ 2017-03-28 20:40 UTC (permalink / raw)
  To: Prajval Poojari <ppoojari@erwin.com>; +Cc: pgsql-bugs

On Tue, Mar 28, 2017 at 1:32 PM, Prajval Poojari <ppoojari@erwin.com> wrote:

> Yes David I agree
> But the problem occurring is column named amcanorder which was available
> until 9.5 release is not available in 9.6
> So do we have any alternative solution if I want to use that column in 9.6
> ?
>

You agree with what?

The table mentioned in the page I linked to has this:

pg_indexam_has_property(am_oid, prop_name) boolean test whether an index
access method has a specified property

Definitions of am_oid and prop_name and present later on the same page.

Whatever it is you are doing will need version detection logic and a
different query for the newer stuff versus the older stuff.

David J.​

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

* Re: BUG #14601: Alternative support for amcanorder column under pg_am
  2017-03-28 19:50 BUG #14601: Alternative support for amcanorder column under pg_am ppoojari@erwin.com
@ 2017-03-28 20:48 ` Andrew Gierth <andrew@tao11.riddles.org.uk>
  2017-03-28 20:56   ` Re: BUG #14601: Alternative support for amcanorder column under pg_am Prajval Poojari <ppoojari@erwin.com>
  1 sibling, 1 reply; 6+ messages in thread

From: Andrew Gierth @ 2017-03-28 20:48 UTC (permalink / raw)
  To: ppoojari@erwin.com; +Cc: pgsql-bugs

>>>>> "ppoojari" == ppoojari  <ppoojari@erwin.com> writes:

 ppoojari> In 9.6 when i tried to use amcanorder column under pg_am it
 ppoojari> gives me an error stating column doesnt not exist.

This is not a bug.

 ppoojari> Can you please provide me with some information if any
 ppoojari> alternative solution is provided for this feature ?

select amname, pg_indexam_has_property(oid, 'can_order') as amcanorder
  from pg_am;

See https://www.postgresql.org/docs/9.6/static/functions-info.html#FUNCTIONS-INFO-INDEXAM-PROPS

-- 
Andrew (irc:RhodiumToad)


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



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

* Re: BUG #14601: Alternative support for amcanorder column under pg_am
  2017-03-28 19:50 BUG #14601: Alternative support for amcanorder column under pg_am ppoojari@erwin.com
  2017-03-28 20:48 ` Re: BUG #14601: Alternative support for amcanorder column under pg_am Andrew Gierth <andrew@tao11.riddles.org.uk>
@ 2017-03-28 20:56   ` Prajval Poojari <ppoojari@erwin.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Prajval Poojari @ 2017-03-28 20:56 UTC (permalink / raw)
  To: Andrew Gierth <andrew@tao11.riddles.org.uk>; +Cc: pgsql-bugs

Thanks Guys.

Regards,
Prajval Poojari

-----Original Message-----
From: Andrew Gierth [mailto:andrew@tao11.riddles.org.uk] 
Sent: Tuesday, March 28, 2017 4:49 PM
To: Prajval Poojari <ppoojari@erwin.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #14601: Alternative support for amcanorder column under pg_am

>>>>> "ppoojari" == ppoojari  <ppoojari@erwin.com> writes:

 ppoojari> In 9.6 when i tried to use amcanorder column under pg_am it  ppoojari> gives me an error stating column doesnt not exist.

This is not a bug.

 ppoojari> Can you please provide me with some information if any  ppoojari> alternative solution is provided for this feature ?

select amname, pg_indexam_has_property(oid, 'can_order') as amcanorder
  from pg_am;

See https://www.postgresql.org/docs/9.6/static/functions-info.html#FUNCTIONS-INFO-INDEXAM-PROPS

--
Andrew (irc:RhodiumToad)


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



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


end of thread, other threads:[~2017-03-28 20:56 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-03-28 19:50 BUG #14601: Alternative support for amcanorder column under pg_am ppoojari@erwin.com
2017-03-28 20:16 ` David G. Johnston <david.g.johnston@gmail.com>
2017-03-28 20:32   ` Prajval Poojari <ppoojari@erwin.com>
2017-03-28 20:40     ` David G. Johnston <david.g.johnston@gmail.com>
2017-03-28 20:48 ` Andrew Gierth <andrew@tao11.riddles.org.uk>
2017-03-28 20:56   ` Prajval Poojari <ppoojari@erwin.com>

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