Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: Scripting f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 7 Topic 15503 of 16941
Post > Topic >>

Re: Scripting function definitions as SQL?

by kleptog@[EMAIL PROTECTED] (Martijn van Oosterhout) May 11, 2008 at 03:49 PM

--SWTRyWv/ijrBap1m
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, May 11, 2008 at 06:12:40AM -0700, Postgres User wrote:
> Has anyone written a function that scripts out all the functions in a
> database as full SQL statements (Create Function.....)
>=20
> I found the below SQL will return all the fields needed to build a SQL
> statement, but it would take some work to combine the field values
> correctly to get the right format.  So does anyone know if the code
> has already been written by someone else?

Does pg_dump not do what you want?

Have a nice day,
--=20
Martijn van Oosterhout   <kleptog@[EMAIL PROTECTED]
>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while=20
> boarding. Thank you for flying nlogn airlines.

--SWTRyWv/ijrBap1m
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIJvlxIB7bNG8LQkwRAo25AJwIVt9ywCJxG237xFQTtGZWf+Nj8wCgkfQF
UdZSJu96iC4kD3EIqDnl4aw=
=jCfE
-----END PGP SIGNATURE-----

--SWTRyWv/ijrBap1m--
 




 7 Posts in Topic:
Scripting function definitions as SQL?
postgres.developer@[EMAIL  2008-05-11 06:12:40 
Re: Scripting function definitions as SQL?
kleptog@[EMAIL PROTECTED]  2008-05-11 15:49:37 
Re: Scripting function definitions as SQL?
postgres.developer@[EMAIL  2008-05-11 11:28:37 
Re: Scripting function definitions as SQL?
depesz@[EMAIL PROTECTED]   2008-05-11 20:43:25 
Re: Scripting function definitions as SQL?
postgres.developer@[EMAIL  2008-05-11 12:08:36 
Re: Scripting function definitions as SQL?
reece@[EMAIL PROTECTED]   2008-05-11 22:27:51 
Re: Scripting function definitions as SQL?
singh.gurjeet@[EMAIL PROT  2008-05-12 12:38:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 12:15:44 CDT 2008.