Re: [GENERAL] Error while including PQXX library

2009-05-19 Thread Malinka Rellikwodahs
On Tue, May 19, 2009 at 12:37, aravind chandu  wrote:
> Hello,
>
>   I wrote a small program in cpp which uses pqxx API.The file that i
> included are
>
>       #include 
>   #include 
>
>  After compiling i got the following error :
>     prog29.cpp:5:21: pqxx/connection: No such file or directory
>     prog29.cpp:5:21: pqxx/transaction: No such file or directory
>
>     I checked the include directory and all these files were there,but i
> don't know why i got these errors.Can you guys please help me to solve this
> problem.

Random guess but check that your include path points to the directory
containing the pqxx director, for example if you're connection and
transaction header files are in some/path/include/pqxx make sure you
add to the compiler some/path/include not some/path/include/pqxx

>
> Thanks,
> Aravind.
>
>
>
>

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


Re: [GENERAL] db backup script in gentoo

2008-12-01 Thread Malinka Rellikwodahs
as previously said you need to go to http://forums.gentoo.org/

On Mon, Dec 1, 2008 at 13:16, Andrus <[EMAIL PROTECTED]> wrote:

> your /usr/portage directory is probably not mounted properly check that
>> again and then check /etc/make.profile points to a valid directory which
>> will be >something along the lines of
>> /usr/portage/profiles/default-linux//
>>
>
> jomanda etc # ls /etc/make.profile -l
> lrwxrwxrwx 1 root root 48 19. juuni  2006 /etc/make.profile ->
> ../usr/portage/profiles/default-linux/x86/2006.0
> jomanda etc # ls -l ../usr/portage/profiles/default-linux/x86/2006.0
> ls: ../usr/portage/profiles/default-linux/x86/2006.0: No such file or
> directory
> jomanda etc # ls -l ../usr/portage/profiles/default-linux/x86/2007.0
> kokku 12
> drwxr-xr-x 2 root root  54 14. apr2007 desktop
> -rw-r--r-- 1 root root 486  8. aug2007 make.defaults
> -rw-r--r-- 1 root root 664 14. apr2007 packages
> -rw-r--r-- 1 root root   3 14. apr2007 parent
> drwxr-xr-x 2 root root  60 14. apr2007 server
> jomanda amd64 # emerge portage
> Calculating dependencies... done!
>
> !!! Error: the  package;
> !!!the two packages cannot be installed on the same system
> together.
> !!!Please use 'emerge --pretend' to determine blockers.
>
> For more information about Blocked Packages, please refer to the following
> section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
>
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
>
> jomanda etc # emerge portage
>
> !!! Your current profile is deprecated and not supported anymore.
> !!! Please upgrade to the following profile if possible:
>   default/linux/x86/2008.0
>
> To upgrade do the following steps:
> # cd /etc/
> # rm make.profile
> # ln -s ../usr/portage/profiles/default/linux/x86/2008.0 make.profile
>
>
> Calculating dependencies... done!
>
> !!! Error: the  package;
> !!!the two packages cannot be installed on the same system
> together.
> !!!Please use 'emerge --pretend' to determine blockers.
>
> For more information about Blocked Packages, please refer to the following
> section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
>
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
>
> jomanda etc # cd /etc/
> jomanda etc # rm make.profile
> jomanda etc # ln -s ../usr/portage/profiles/default/linux/x86/2008.0
> make.profile
> jomanda etc # emerge portage
> Traceback (most recent call last):
>  File "/usr/bin/emerge", line 4049, in ?
>   emerge_main()
>  File "/usr/bin/emerge", line 3768, in emerge_main
>   settings, trees, mtimedb = load_emerge_config()
>  File "/usr/bin/emerge", line 3679, in load_emerge_config
>   trees = portage.create_trees(trees=trees, **kwargs)
>  File "/usr/lib/portage/pym/portage.py", line 6780, in create_trees
>   config_incrementals=portage_const.INCREMENTALS)
>  File "/usr/lib/portage/pym/portage.py", line 902, in __init__
>   addProfile(os.path.realpath(self.profile_path))
>  File "/usr/lib/portage/pym/portage.py", line 889, in addProfile
>   raise portage_exception.ParseError(
> NameError: global name 'parents_file' is not defined
>
> Andrus.
>
>


Re: [GENERAL] db backup script in gentoo

2008-12-01 Thread Malinka Rellikwodahs
On Mon, Dec 1, 2008 at 12:04, Andrus <[EMAIL PROTECTED]> wrote:

>  sudo emerge --sync
>>
>
> * An update to portage is available. It is _highly_ recommended
> * that you update portage now, before any other packages are updated.
> * Please run 'emerge portage' and then update ALL of your
> * configuration files.
> * To update portage, run 'emerge portage'.
>
> root ~ # emerge portage
> !!! ARCH is not set... Are you missing the '/etc/make.profile' symlink?
> !!! Is the symlink correct? Is your portage tree complete?
>
> So it seems that emerge portage fails.
> Also I do'nt understand this:
>

your /usr/portage directory is probably not mounted properly check that
again and then check /etc/make.profile points to a valid directory which
will be something along the lines of
/usr/portage/profiles/default-linux//

for example on one of my old amd64 boxes it's

/usr/portage/profiles/default-linux/amd64/2007.0


Re: [GENERAL] select any table

2008-03-25 Thread Malinka Rellikwodahs
I'm just curious how would having the ability to grant privileges to a
schema be a foot gun?

On Tue, Mar 25, 2008 at 2:54 PM, Joshua D. Drake <[EMAIL PROTECTED]>
wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Tue, 25 Mar 2008 13:37:37 -0500
> "Roberts, Jon" <[EMAIL PROTECTED]> wrote:
>
> > > O.k. :) but that doesn't change my response. You can't do it with a
> > > single command. You can script it.
> > >
> > >
> >
> > It would be a nice enhancement to have a "select any table" privilege
> > or at least "grant insert/update/delete/select on ".
>
> Certainly, but it is also a foot gun.
>
> Sincerely,
>
> Joshua D. Drake
>
>
>
> - --
> The PostgreSQL Company since 1997: http://www.commandprompt.com/
> PostgreSQL Community Conference: http://www.postgresqlconference.org/
> United States PostgreSQL Association: http://www.postgresql.us/
> Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
>
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFH6UptATb/zqfZUUQRAmhQAJ0bzU5LCF0GU4r3SgihoE22xuqedQCdEOcB
> w3Im5SsA8Y1I4NZNcx1XNjc=
> =pOZY
> -END PGP SIGNATURE-
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>


Re: [GENERAL] ER Diagram design tools (Linux)

2008-03-07 Thread Malinka Rellikwodahs
i'm interested in both the xml extractor and the conversion, could you reply
with a link or some such it would be greatly appreciated ;)

On Fri, Mar 7, 2008 at 2:44 PM, Colin Fox <[EMAIL PROTECTED]> wrote:

> Conor McTernan wrote:
> > I was wondering if anyone knows of any good ER Diagram tools for
> > Postgres that run on Linux.
> >
> > I have been using DBDesigner by FabForce for a couple of years, but
> > development has stopped while MySQL workbench is being built (for
> > windows only). Neither of these applications will talk to Postgres and
> > I've found DBDesigner to be a bit buggy at the best of times (it's
> > still quite good and better than nothing I suppose).
> >
> > I've been using PgAdmin3 which is great for updating/managing
> > tables/view etc, but I would really like something for modelling ER
> > diagrams which will talk directly to Postgres.
> >
> > Does anyone know of any commercial or open source software that will do
> this?
> >
> > Cheers,
> >
> > Conor
> >
> > ---(end of broadcast)---
> > TIP 1: if posting/reading through Usenet, please send an appropriate
> >subscribe-nomail command to [EMAIL PROTECTED] so that your
> >message can get through to the mailing list cleanly
> >
> I've created an XSL stylesheet that works with graphviz to reverse
> engineer an ERD from a postgres database.
>
> If anyone's interested, I can make this available. It works quite well.
> It uses a postgres-to-xml extractor that someone wrote (I don't know who
> - their name is not in the file) and then I convert the xml to graphviz.
>
> Regards
>  cf
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>